コード例 #1
0
 void DWrongButton()
 {
     // remaining--;
     //remainingAttempts.text = remaining.ToString();
     HUDController.health -= 25;
     TimeControl.ResumeGame();
     Destroy(this.gameObject);
 }
コード例 #2
0
 void DRightButton()
 {
     //remaining++;
     //remainingAttempts.text = remaining.ToString();
     HUDController.score += 1500 * (int)Time.deltaTime + 700;
     TimeControl.ResumeGame();
     Destroy(this.gameObject);
 }
コード例 #3
0
 private void OnDestroy()
 {
     _speechRecognition.SpeechRecognizedSuccessEvent -= SpeechRecognizedSuccessEventHandler;
     _speechRecognition.SpeechRecognizedFailedEvent  -= SpeechRecognizedFailedEventHandler;
     TimeControl.ResumeGame();
 }