diff --git a/src/enemy.cpp b/src/enemy.cpp index fe6c9c4..52ffd34 100644 --- a/src/enemy.cpp +++ b/src/enemy.cpp @@ -21,9 +21,8 @@ void Enemy::_ready() { timer->connect("timeout", callable_mp(this, &Enemy::update)); this->target_rotation = this->get_rotation().y; this->drone_sound = this->get_node("%DroneSound"); - if(this->has_node("%DebugLabel")) { + if(this->has_node("%DebugLabel")) this->debug_label = this->get_node("%DebugLabel"); - } this->agent->connect("velocity_computed", callable_mp(this, &Enemy::_on_velocity_calculated)); }