예제 #1
0
        public bool PrintNext()
        {
            var showArrow = dialogScroller.IsPaged() && !dialogScroller.IsLastPage();

            var lines = dialogScroller.Next();

            if (lines == null || lines.Length == 0)
            {
                EndDialog();
                return(false);
            }

            dialogArrow.gameObject.SetActive(showArrow);
            StopAllCoroutines();
            PlaySound();

            StartCoroutine(Print(lines, dialogScroller.IsFirstBuffer() || dialogScroller.IsFirstBufferLine()));
            return(true);
        }
예제 #2
0
        public bool PrintNext()
        {
            var showArrow = _scroller.IsPaged() && !_scroller.IsLastPage();

            var lines = _scroller.Next();

            if (lines == null || lines.Length == 0)
            {
                EndDialog();
                return(false);
            }

            arrowImage.gameObject.SetActive(showArrow);
            StopAllCoroutines();
            PlaySound();

            StartCoroutine(Print(lines, _scroller.IsFirstBuffer() || _scroller.IsFirstBufferLine()));
            _currentDialog.SendMessage("OnDialogNext", SendMessageOptions.DontRequireReceiver);
            return(true);
        }