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); }
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); }