// 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(); }
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>(); }