// Use this for initialization void Start() { worldMap = GameObject.FindGameObjectWithTag ("GameController").GetComponent<WorldMap> (); mapSizeX = (int)worldMap.GetMapSize().x; mapSizeY = (int)worldMap.GetMapSize().y; }
// Use this for initialization void Start() { worldMap = GameObject.FindGameObjectWithTag ("GameController").GetComponent<WorldMap> (); mapSizeX = (int)worldMap.GetMapSize().x; mapSizeY = (int)worldMap.GetMapSize().y; }