Beispiel #1
0
 public void fill(BattleArmy a1)
 {
     a = a1;
     for (int i = 0; i < a.Length(); i++)
     {
         gameObject.transform.GetChild(i).GetComponent <uBattleUnitsStack>().fill(a.getBUS(i));
     }
 }
Beispiel #2
0
 public void Delete(BattleUnitsStack b)
 {
     for (int i = 0; i < a.Length(); i++)
     {
         if (a.getcArmy()[i] == b)
         {
             a.Remove(i);
             Destroy(transform.GetChild(i).gameObject);
             return;
         }
     }
 }