private void chooseUnit(int gold) { int unitRange = 0; if (!canSpawnAll) { unitRange = unitPoolRange(gold, false); } else { unitRange = unitPoolRange(gold, true); } int unitType = returnUnitType(unitRange); spawner.spawnUnit(unitType, false); }
public void spawnLightUnit() { spawnScript.spawnUnit(constants.LIGHT_UNIT_TYPE, true); }