IEnumerator StartConversation() { if (gaveHat) { yield break; } gaveHat = true; state = MoleVillageState.Talking; GameController.Instance.Pause(); goalDialogueText = Utils.Choose(quips); typeCoroutine = StartCoroutine(TypeText(goalDialogueText)); audio.clip = Utils.Choose(greetingClips); audio.pitch = Random.Range(.7f, 1.3f); audio.Play(); foreach (var m in moles) { m.GetExcited(); } }
void StartHatAnimation() { state = MoleVillageState.Giving; presentingHat = GameController.Instance.GetNewHat(); }