void Awake() { lights = GameObject.FindGameObjectsWithTag("Light"); MakeParents(); GetSpawnDimensions(); SetSpawnPoints(); timerState = TimerOn.timerDeactivated; }
public void DeactivateCurrentlyActiveTimer() { //Disable the level's active alarm, resetting the relevant timer and lighting color values and disabling/hiding the Timer Bar timerState = TimerOn.timerDeactivated; timerCurrentTime = timerMaxxTime; sceneLight.color = Color.white; timerBar.fillAmount = timerCurrentTime / timerMaxxTime; timerBar.gameObject.SetActive(false); }