コード例 #1
0
 public void StopTimer()
 {
     HideTimer();
     if (TimerPromise != null)
     {
         TimerPromise.Abort();
     }
 }
コード例 #2
0
 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 = "";
 }