feat: enemy now disables all processing on death
parent
fa7880eb57
commit
0b15f95d0e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue