private void RevealOrNextPage() { if (!IsShowing) { return; } // reveal m_endPageSymbol.color = Color.clear; m_endTextSymbol.color = Color.clear; if (!IsFullPageRevealed) { StopAllCoroutines(); Reveal(); return; } if (m_curDialogue.IsBranching) { return; } // next page EndPage(); if (IsOnLastPage) { return; } m_curDialogue.ChooseOption(0, m_speaker); }
public void Clear() { IsVisible = false; m_lineRenderer.positionCount = 0; m_lineRenderer.SetPositions(new Vector3[0]); SetColor(Color.clear); if (m_curDialogue != null) { if (m_curDialogue.OptionList.Count == 1) { m_curDialogue.ChooseOption(0, m_speaker); } m_curDialogue = null; } }