Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     m_nextSpawnTimer     = m_wavesData.FirstWaveDelay;
     m_unitsSpawnedInWave = 0;
     m_waveTimerUI        = GameManager.Instance.m_waveTimerUI;
     m_waveTimerUI.Activate();
 }
Example #2
0
 void Start()
 {
     spawnIndex  = 0;
     enemyIndex  = 0;
     headingText = "Cooldown";
     timerText   = "Wave In: " + ((int)(cooldownPeriod - periodTimer) + 1).ToString();
     waveTimerUI = GameObject.Find("UIManager/WaveTimerUI").GetComponent <WaveTimerUI>();
     waveTimerUI.SetHeading(headingText);
     waveTimerUI.SetTimer(timerText);
     enemyList = new List <GameObject>();
 }