public void StartNewWave()
 {
     CurrentWave++;
     enemysleft         = standardNumEnemys + 2;
     standardNumEnemys += 2;
     waveEnded          = false;
     Popup.SetActive(false);
     cube.SetActive(false);
     colbody123.enabled = false;
     zomsp.Spawn(enemysleft);
 }
Beispiel #2
0
 private void SpawnZombie()
 {
     m_ZombieSpawnTimerSec += Time.deltaTime;
     if (m_ZombieSpawnTimerSec >= ZOMBIE_SPAWN_INTERVAL_SEC)
     {
         m_ZombieSpawnTimerSec = 0;
         if (m_ZombieSpawner.TotalActiveZombie < 2)
         {
             m_ZombieSpawner.Spawn();
         }
     }
 }