Setup state in setAIBehaviour (syncpoints)

This commit is contained in:
2024-02-13 23:26:22 +01:00
parent cf8af6c2ac
commit 6715fc2352
2 changed files with 15 additions and 17 deletions

View File

@@ -53,11 +53,6 @@ ecs_entity_t entityCreateBaseUnit(const Position position, f32 size, Player play
.elapsed = 0.0f,
});
}
ecs_set(ECS, e, BzBTState, {
.root = NULL,
.nodeStatePool = game->pools.btNodeState
});
ecs_set(ECS, e, AIBlackboard, {.entity = e});
ecs_add_id(ECS, e, Selectable);
Unit unitComp = {
.attackElapsed = 0.0f,