trenches/src/enemy.cpp

14 lines
302 B
C++
Raw Normal View History

2024-12-06 16:12:06 +00:00
#include "enemy.hpp"
void Enemy::_bind_methods() {}
void Enemy::_ready() {
this->anim_tree = this->get_node<PlayerAnimTree>("CharacterModel/AnimationTree");
}
void Enemy::damage() {
this->anim_tree->death_animation();
this->set_collision_mask(0x0);
this->set_collision_layer(0x0);
}