feat: npc unit will now deallocate itself when all npc members are killed
This commit is contained in:
parent
8a9d70b37e
commit
b3090243e0
2 changed files with 41 additions and 5 deletions
|
|
@ -10,9 +10,11 @@ class MapRegion;
|
|||
class NpcUnit : public Node3D {
|
||||
GDCLASS(NpcUnit, Node3D);
|
||||
static void _bind_methods();
|
||||
void on_npc_death();
|
||||
void on_npc_awareness_changed(bool seen);
|
||||
void child_added(Node *node);
|
||||
void enter_tree();
|
||||
void ready();
|
||||
|
||||
protected:
|
||||
void _notification(int what);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue