Exemple #1
0
    protected void requestZombieCreationFast()
    {
        GameObject gObj = globalEvents.characterCreator.createFastZombie(gameObject.transform.position, Quaternion.Euler(0, 0, 0));
        zombieAI   zAI  = gObj.GetComponent <zombieAI>();

        if (zAI != null)
        {
            zAI.MakeFastZombie();
        }
    }
Exemple #2
0
    public GameObject createFastZombie(Vector3 position, Quaternion rotation)
    {
        GameObject gObj   = createZombie(position, rotation);
        zombieAI   zombie = gObj.GetComponent <zombieAI>();

        if (zombie != null)
        {
            zombie.MakeFastZombie();
        }
        return(gObj);
    }
Exemple #3
0
    public zombieAI createFastZombie()
    {
        GameObject spawn = getRandomSpawn();

        // if no such object found randomly, get out of loop
        if (spawn == null)
        {
            return(null);
        }

        zombieAI fz = createZombie(gs.RandomVectorInBounds(spawn), q).GetComponent <zombieAI>();

        fz.MakeFastZombie();
        return(fz);
    }