Ejemplo n.º 1
0
    private IEnumerator ResolveChoiceBubble(EpisodeChoiceBubble bubble)
    {
        bubble.SetBrainy();
        yield return(new WaitForSeconds(1f));

        Tween.Position(bubble.transform, new Vector2(0f, 1.3f), 0.5f, 0f, Tween.EaseInOut);
        yield return(new WaitForSeconds(1f));

        MotivationManager.Instance.ResolveChoice(bubble.Choice);
        if (bubble.Choice.Scores.Count > 0)
        {
            foreach (var motivationScore in bubble.Choice.Scores)
            {
                ScoreUI.ShowScoreForMotivation(motivationScore.Type, MotivationManager.Instance.GetScore(motivationScore.Type));
            }

            yield return(new WaitForSeconds(2.5f));
        }

        yield return(new WaitForSeconds(1f));

        bubble.CleanUp();

        StartCoroutine(ResolveEpisode(CurrentEpisode, bubble.Choice));
    }
Ejemplo n.º 2
0
    public void SelectChoice(EpisodeChoiceBubble bubble)
    {
        if (!Playing)
        {
            return;
        }

        toController.CancelTimeOut();
        Playing = false;
        StartCoroutine(ResolveChoiceBubble(bubble));
    }