예제 #1
0
 public void Add(UnitsStack b, Position p)
 {
     a.addBattleUnitStack(b, p);
     transform.GetChild(transform.childCount - 1).GetComponent <uBattleUnitsStack>()
     .fill(a.getBUS(transform.childCount - 1));
 }
예제 #2
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));
     }
 }