예제 #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);
     }
 }
예제 #2
0
 public BattleField(BattleManagerS callback)
 {
     this.callback = callback;
 }
예제 #3
0
 void Start()
 {
     damageNum  = GetComponent <Text>();
     damNumbers = battleMan.GetComponent <BattleManagerS>();
 }