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