/// <summary> /// A battle map was initialized in the scene. This may break if multiple maps are created at some point? /// </summary> /// <param name="map">Map.</param> public void MapInitialized(AT.ATMap map) { currentMapInstance = map; if (OnMapInitialized != null) { OnMapInitialized(map); } }
public void InstantiateMapPrefab() { if (currentBattleMapPrefab != null) { GameObject map = Instantiate(GameManager.persistentInstance.currentBattleMapPrefab); currentMapInstance = map.GetComponent <AT.ATMap> (); currentMapInstance.Initialize(); } }