// Update is called once per frame void Update() { if (VoiceComs.HasBeenTriggered()) { Settings.UseVoice = !Settings.UseVoice; UpdateVoiceStatus(); } if (Timer.HasBeenTriggered()) { Settings.UseTimer = !Settings.UseTimer; UpdateTimerStatus(); } if (Tutorial.HasBeenTriggered()) { Settings.UseTutorial = !Settings.UseTutorial; UpdateTutorialStatus(); } }
// Update is called once per frame void Update() { var text = InputField.text; if (David.HasBeenTriggered()) { SpeekText(TextToSpeechVoice.David, text); } if (Default.HasBeenTriggered()) { SpeekText(TextToSpeechVoice.Default, text); } if (Zira.HasBeenTriggered()) { SpeekText(TextToSpeechVoice.Zira, text); } if (Mark.HasBeenTriggered()) { SpeekText(TextToSpeechVoice.Mark, text); } }