Exemplo n.º 1
0
    public void Talk(Action action, Action exit)
    {
        Time.timeScale = 0;
        OnExitTalk     = exit;
        action();
        //isTalking = true;
        msgUI.SetActive(true);

        OnStart.Invoke();

        //messages = DialogueTree.state.GetMessage();
        if (!isShop)
        {
            if (useDialogueTree)
            {
                msgSig = DialogueTree.state.GetMessageAndSignal();

                messages = msgSig.message;
            }
            else
            {
                msgSig         = new MessageAndSignal();
                msgSig.message = messages;
                msgSig.code    = 0;
            }
        }
        else
        {
        }

        UpdateMsgText();
        StartCoroutine(Delay());
    }
Exemplo n.º 2
0
    public MessageAndSignal GetMessageAndSignal()
    {
        MessageAndSignal m = new MessageAndSignal();

        m.message = message;
        m.code    = Code;
        if (next)
        {
            anim.SetTrigger("Continue");
        }
        return(m);
    }