fix: formatting enemy_body.cpp
This commit is contained in:
parent
d8ae45df0f
commit
2a083b6430
|
@ -7,10 +7,10 @@ void EnemyBody::_bind_methods() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void EnemyBody::on_child_added(Node *node) {
|
void EnemyBody::on_child_added(Node *node) {
|
||||||
if (StateMachine *fsm{ cast_to<StateMachine>(node) }) {
|
if (StateMachine * fsm{ cast_to<StateMachine>(node) }) {
|
||||||
this->fsm = fsm;
|
this->fsm = fsm;
|
||||||
}
|
}
|
||||||
if (NavigationAgent3D *nav{ cast_to<NavigationAgent3D>(node) }) {
|
if (NavigationAgent3D * nav{ cast_to<NavigationAgent3D>(node) }) {
|
||||||
this->nav = nav;
|
this->nav = nav;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue