예제 #1
0
    public void ExitDialogue()
    {
        Name.text = "";
        text.text = "";

        animDialogueWindow.SetBool("appear", false);
        talking = false;

        switch (enddia)
        {
        case enum1.roul:        //룰렛
            if (gm.roul != null)
            {
                roul = gm.roul;
                roul.SetActive(true);
                StartCoroutine(gm.roul.GetComponent <Roulette>().Roll());
            }
            break;

        case enum1.choice:      //선택지
            theChoice.triggerChoice(xdia.current);
            break;

        case enum1.ending:      //엔딩
            break;

        default:
            gm.changedia();        //대화 끝
            break;
        }

        enddia = 0;
    }
예제 #2
0
    public void ExitDialogue()
    {
        Name.text = "";
        text.text = "";
//        count = 0;

        //       animSprite.SetBool("Appear", false);
        animDialogueWindow.SetBool("appear", false);
        talking = false;
        if (xdia.current.answers.Count != 0)
        {
            theChoice.triggerChoice(xdia.current);
        }
        else
        {
            gm.changedia();    //대화 끝
        }
    }
예제 #3
0
    public void ExitDialogue()
    {
        Name.text = "";
        text.text = "";

        animDialogueWindow.SetBool("appear", false);
        talking = false;

        if (xdia.current.roulette)
        {
            xdia.AnswerQuestion(0);
            roul.SetActive(true);
            StartCoroutine(roulette.Roll());
        }

        else if (xdia.current.answers.Count != 0)
        {
            theChoice.triggerChoice(xdia.current);
        }
        else
        {
            gm.changedia();    //대화 끝
        }
    }