示例#1
0
        public void Dialog_advanced_one_time()
        {
            // ACT
            CreateDialog();

            int index = 0;

            // ASSERT
            DiaManager.AdvanceLine(_dialog, out string outline, index, out index, out _finished);

            Assert.AreEqual(1, index);
            Assert.AreEqual("Lorem Ipsum", outline);
        }
示例#2
0
    /*
     * trigger functions on interaction
     */
    public void Interact(Dialog dia)
    {
        Clear();
        if (!_finished)
        {
            if (!panel.activeSelf)
            {
                panel.SetActive(true);
            }
            DiaManager.AdvanceLine(dia, out _line, _index, out _index, out _finished);
            StartCoroutine(SpellLine(_line));
        }

        if (_finished)
        {
            panel.SetActive(false);
            _finished            = false;
            gameManager.InDialog = false;
        }
    }