示例#1
0
 /// <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>();
 }
示例#2
0
 /// <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();
     }
 }