Ejemplo n.º 1
0
    void Start()
    {
        powerupList   = new GameObject[0];
        amountPerWave = 2;

        spawner = GameObject.FindWithTag("PowerupSpawner").GetComponent <powerupSpawner>();
    }
Ejemplo n.º 2
0
    void Start()
    {
        spawnedEnemies        = 0;
        spawnedFractalEnemies = 0;

        directions = FindObjectOfType <DirectionSpawner>();

        spawner   = GameObject.FindWithTag("PowerupSpawner").GetComponent <powerupSpawner>();
        wave      = 0;
        increment = 1;
        //Initilalize timer as spawn time (e.g., 30 sec), counts down from there
        timer = 0;
    }
Ejemplo n.º 3
0
 void Start()
 {
     powerups = GameObject.FindWithTag("PowerupController").GetComponent <PowerupController>();
     spawner  = GameObject.FindWithTag("PowerupSpawner").GetComponent <powerupSpawner>();
 }