void Start() { gameSystem = GameObject.Find("GameSystem").GetComponent <GameSystem>(); mapBehavior = GameObject.Find("GameMap").GetComponent <GameMapBehavior>(); player = GameObject.Find("Player").GetComponent <PlayerController>(); goalTile = mapBehavior.GetTileAt(mapBehavior.goalPosition); currentTile = mapBehavior.GetTileAt(player.curMapPos); path = new List <GameTile>(); }