feat: enemy now disables all processing on death

This commit is contained in:
Sara 2024-12-11 22:41:29 +01:00
parent fa7880eb57
commit 0b15f95d0e

View file

@ -96,6 +96,8 @@ void Enemy::damage() {
this->anim_tree->death_animation();
this->set_collision_mask(0x0);
this->set_collision_layer(0x0);
this->set_process(false);
this->set_physics_process(false);
}
void Enemy::notice_player(Player *player) {