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)); } }
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; } } }