feat: units hold formation while patrolling

This commit is contained in:
Sara 2025-07-21 16:50:58 +02:00
parent c05d3aa28f
commit ec6fc76335
7 changed files with 31 additions and 11 deletions

View file

@ -1,13 +1,13 @@
#ifndef NPC_UNIT_H
#define NPC_UNIT_H
#include "scene/main/node.h"
#include "scene/3d/node_3d.h"
class StateMachine;
class EnemyBody;
class PatrolPath;
class NpcUnit : public Node {
GDCLASS(NpcUnit, Node);
class NpcUnit : public Node3D {
GDCLASS(NpcUnit, Node3D);
static void _bind_methods();
void on_npc_awareness_changed(bool seen);
void child_added(Node *node);