// Use this for initialization void Start() { survivalTime = Random.Range(minSurvivalTime, maxSurvivalTime); survivalTimer = survivalTime; timerUI = GameObject.Find("Timer").GetComponent <TimerUI>(); if (timerUI != null) { timerUI.SetTimer(survivalTime); } if (AudioManager.instance) { AudioManager.instance.PlaySound("Music"); } levelStatus = LevelStatus.IN_PROGRESS; }