Пример #1
0
 /// <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);
     }
 }
Пример #2
0
 public void InstantiateMapPrefab()
 {
     if (currentBattleMapPrefab != null)
     {
         GameObject map = Instantiate(GameManager.persistentInstance.currentBattleMapPrefab);
         currentMapInstance = map.GetComponent <AT.ATMap> ();
         currentMapInstance.Initialize();
     }
 }