feat: enemy now disables all processing on death

main
Sara 2024-12-11 22:41:29 +01:00
parent fa7880eb57
commit 0b15f95d0e
1 changed files with 2 additions and 0 deletions

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) {