public void spawnArcher() { GameObject allie = GameObject.Instantiate(alliePrefab); AllieNPC allienpc = allie.GetComponent <AllieNPC>(); allienpc.selectType(AllieNPC.allieTypeEnum.archer); allie.transform.position = archerPosition[numberOfArchers]; numberOfArchers++; }
public void spawnWizard() { //todo , this needs to change GameObject allie = GameObject.Instantiate(alliePrefab); AllieNPC allienpc = allie.GetComponent <AllieNPC>(); allienpc.selectType(AllieNPC.allieTypeEnum.wizard); allie.transform.position = wizardPosition[numberOfWizard]; allienpc.damage = 0; numberOfWizard++; }