feat: enemy spawner will now attach spawned enemies to its own parent
This commit is contained in:
parent
b3090243e0
commit
86a15184c0
|
@ -60,7 +60,7 @@ void EnemySpawner::on_phase_change(bool hunt) {
|
|||
return;
|
||||
}
|
||||
unit_3d->set_patrol_path(this->patrol_path);
|
||||
add_child(unit_3d);
|
||||
callable_mp(cast_to<Node>(this->region), &Node::add_child).call_deferred(unit_3d, false, INTERNAL_MODE_DISABLED);
|
||||
unit_3d->set_global_transform(this->get_global_transform());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue