Exemplo n.º 1
0
 public void triggerChoice(Dialogue.Chat c)
 {
     cur = c;
     //       if (!flag[i]) {
     StartCoroutine(ACoroutine());
     //     }
 }
Exemplo n.º 2
0
    public void ShowChoice(Dialogue.Chat c)
    {
        choiceIng = true;
        go.SetActive(true);
        result     = 0;
        answerList = c.answers;
        question   = c.text;

        for (int i = 0; i < answerList.Count; i++)
        {
            answer_Panel[i].SetActive(true);
            count = i;
        }
        anim.SetBool("Appear", true);
        //      Selection();    고를 때 색깔 활성화
        StartCoroutine(ChoiceCoroutine());
    }
Exemplo n.º 3
0
 public void Restart()
 {
     //Find the first DialogueNode without any inputs. This is the starting node.
     current = nodes.Find(x => x is Chat && x.Inputs.All(y => !y.IsConnected)) as Chat;
 }