Exemple #1
0
    public void spawnArcher()
    {
        GameObject allie    = GameObject.Instantiate(alliePrefab);
        AllieNPC   allienpc = allie.GetComponent <AllieNPC>();

        allienpc.selectType(AllieNPC.allieTypeEnum.archer);
        allie.transform.position = archerPosition[numberOfArchers];

        numberOfArchers++;
    }
Exemple #2
0
    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++;
    }