feat: enemy death and damage effects

This commit is contained in:
Sara 2025-07-23 00:24:52 +02:00
parent 2134fcae92
commit 1a8c64806d
13 changed files with 96 additions and 7 deletions

View file

@ -2,7 +2,9 @@
#include "macros.h"
#include "npc_unit.h"
void EnemyBody::_bind_methods() {}
void EnemyBody::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_movement_direction", "direction"), &self_type::set_movement_direction);
}
void EnemyBody::ready() {
this->fsm = cast_to<StateMachine>(get_node(NodePath("%StateMachine")));