/// <summary> /// Overriden method for when scripts starts /// </summary> protected override void Start() { base.Start(); currentTime = leverEndTime; display = GetComponentInChildren <CountdownTimerDisplay>(); display.DisplayTime(currentTime); audiosource = GetComponent <AudioSource>(); }
/// <summary> /// Method for when scripts starts /// </summary> protected void Start() { display = GetComponentInChildren <CountdownTimerDisplay>(); display.DisplayTime(timer.currentTime); //Check if auto starts game if (autoStart) { StartGameSequence(); } }