public void Initialize(IAgent entity) { pathfindingController = PathfindingController.Instance; this.agent = entity; this.currentPath = new Queue <PathfindingNode>(); this.agent.SetPosition(pathfindingController.Grid.GetClosestWalkableNode(entity.Position).WorldPosition); }
void Awake() { current = this; displayController = GetComponent <DisplayController>(); }