14 lines
302 B
C++
14 lines
302 B
C++
|
#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);
|
||
|
}
|