IEnumerator RunIntro() { PlayByPlay.Clear(); PlayByPlay.DelayFrames = 1; yield return(new WaitForSeconds(2)); yield return(PlayByPlay.Display(StartQuip1)); yield return(new WaitForSeconds(2)); yield return(PlayByPlay.Display(StartQuip2)); yield return(new WaitForSeconds(1)); MonsterAnimator.SetTrigger(StartTrigger); yield return(new WaitForSeconds(0.3f)); yield return(Overlay.ShowColor(Color.white, 0.2f)); yield return(new WaitForSeconds(0.2f)); GameMusic.PlayMusic(); HealthMeters.SetActive(true); MonsterAnimator.SetTrigger(ContinueTrigger); PlayByPlay.Clear(); yield return(Overlay.HideColor(0.2f)); yield return(new WaitForSeconds(1)); }
public IEnumerator UserTurn() { Actions.UserChoiceMade = false; PlayByPlay.DelayFrames = DisplayDelay; yield return(PlayByPlay.Display(SelectionPhrase)); Talk.gameObject.SetActive(true); GameController.SetHealActive(true); yield return(new WaitUntil(() => Actions.UserChoiceMade)); Talk.gameObject.SetActive(false); Heal.gameObject.SetActive(false); ButtonManager.GoBack(); yield return(PlayByPlay.DisplayUserAction(Actions.Choice)); yield return(new WaitForSeconds(1.5f)); }