Пример #1
0
 public virtual void Start()
 {
     battleUI = BattleUI.BUI;
     if (battleUI == null)
     {
         Debug.LogError("No BattleUI reference found");
     }
     battleManager = NewBattleManager.bm;
     if (battleManager == null)
     {
         Debug.LogError("No static instance of NewBattleManager found!");
     }
 }
 void Awake()
 {
     currentOption = baseOption;
     if (currentOption == null)
     {
         Debug.LogError("No BaseOption selected");
     }
     if (bm == null)
     {
         bm = this;
     }
     if (allySpawnPoints.Length == 0)
     {
         Debug.LogError("No ally spawn points specified!");
     }
     if (enemySpawnPoints.Length == 0)
     {
         Debug.LogError("No enemy spawn points specified!");
     }
     if (battle == null)
     {
         Debug.LogError("No Battle specified!");
     }
 }