void SetUpDefenceUnit() { buildTimer = 0f; Barrack.GetComponent <Barracks>().CreateUnit(1); if (numOfUnits.Count >= 2) { isDefenceSet = true; UnitBuildTime = 10f; } }
void SetUpOffenseUnit() { buildTimer = 0f; Barrack.GetComponent <Barracks>().CreateUnit(0); }