Beispiel #1
0
 private void Awake()
 {
     if (main == null)
     {
         main = this;
         //Database code (possibly subject to becoming more object-y)
         EnemyDatabase.main.build();
         enemyData = EnemyDatabase.main;
         AllyDatabase.main.build();
         allyData = AllyDatabase.main;
     }
     else
     {
         Destroy(this);
     }
 }
Beispiel #2
0
 public BattleField(BattleManagerS callback)
 {
     this.callback = callback;
 }
Beispiel #3
0
 void Start()
 {
     damageNum  = GetComponent <Text>();
     damNumbers = battleMan.GetComponent <BattleManagerS>();
 }