Beispiel #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;
     }
 }
Beispiel #2
0
 void Awake()
 {
     gridElement = GetComponent <GridElement>();
     agent       = GetComponent <Agent>();
     gridElement.onNewPositionAction += Illuminate;
 }
Beispiel #3
0
 public TurnInfo()
 {
     turnInMotion = false;
     ai           = null;
     gridElement  = null;
 }