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