fix: formatting enemy_body.cpp

This commit is contained in:
Sara 2025-08-22 15:48:29 +02:00
parent d8ae45df0f
commit 2a083b6430

View file

@ -7,10 +7,10 @@ void EnemyBody::_bind_methods() {
}
void EnemyBody::on_child_added(Node *node) {
if (StateMachine *fsm{ cast_to<StateMachine>(node) }) {
if (StateMachine * fsm{ cast_to<StateMachine>(node) }) {
this->fsm = fsm;
}
if (NavigationAgent3D *nav{ cast_to<NavigationAgent3D>(node) }) {
if (NavigationAgent3D * nav{ cast_to<NavigationAgent3D>(node) }) {
this->nav = nav;
}
}