예제 #1
0
 public void StopTimer()
 {
     HideTimer();
     if (TimerPromise != null)
     {
         TimerPromise.Abort();
     }
 }
 new void Update()
 {
     base.Update();
     if (Input.GetKeyDown(KeyCode.Space))
     {
         sceneDelay.Abort();
         FadeToScene(NextScene);
     }
 }
예제 #3
0
 private void ShowText()
 {
     if (CurrentTextDisappearDelay != null)
     {
         CurrentTextDisappearDelay.Abort();
     }
     DiffText.gameObject.SetActive(true);
     CurrentTextDisappearDelay = this.Delay(TextScreenTime, () => { DiffText.gameObject.SetActive(false); });
 }
예제 #4
0
 /// <summary>
 /// Stop and hide the countdown timer
 /// </summary>
 public void StopCountdown()
 {
     SecondsRemaining = 0;
     TimerPromise.Abort();
     this.CountdownText.text = "";
 }