public void CheckEmotion(DataType.MonsterEmotions emotion, AudioClip clip) { if (inputAllowed && (isTutorialRunning || gameStarted)) { inputAllowed = false; SubtitlePanel.Instance.Display(emotion.ToString(), clip); if (emotion == generator.GetSelectedEmotion()) { TimerClock.Instance.StopTimer(); SoundManager.Instance.PlaySFXClip(answerSounds[1]); if (isTutorialRunning) { TutorialFinished(); } else { ++score; UpdateScoreGauge(); if (score >= scoreGoal) { StartCoroutine(PostGame()); } else { DrawCards(waitDuration); } } } else { StartCoroutine(WrongAnswerWait(waitDuration)); } } }
public void CheckEmotion(DataType.MonsterEmotions emotion, AudioClip clip) { if (inputAllowed) { inputAllowed = false; SubtitlePanel.Instance.Display(emotion.ToString(), clip); if (emotion == generator.GetSelectedEmotion()) { SoundManager.Instance.PlayCorrectSFX(); Invoke("EndReview", 2f); } else { StartCoroutine(WrongAnswerWait(waitDuration)); } } }