Exemplo n.º 1
0
 protected void Awake()
 {
     pathfind = new Pathfind {
         tilemapManager = tilemapManager
     };
     gridElement = GetComponent <GridElement>();
     status      = AgentStatus.Normal;
     if (gridElement.solid && pushable)
     {
         Debug.LogWarning("Agent is pushable but gridElement is set to solid. overriding gridElement solid to false");
         gridElement.solid = false;
     }
 }
Exemplo n.º 2
0
 void Awake()
 {
     gridElement = GetComponent <GridElement>();
     agent       = GetComponent <Agent>();
     gridElement.onNewPositionAction += Illuminate;
 }
Exemplo n.º 3
0
 public TurnInfo()
 {
     turnInMotion = false;
     ai           = null;
     gridElement  = null;
 }