private IEnumerator Routine_View(Asset_ViewText ViewText, System.Action callbackNextText) { foreach (var str in ViewText.Strings) { _TargetText.text = ""; _isInput = false; //行ごとに分ける yield return(Routine_ViewLine(str)); _isInput = false; while (!_isInput) { yield return(null); } } if (callbackNextText != null) { callbackNextText(); } }
public void StartView(Asset_ViewText ViewText, System.Action callbackNextText = null) { _Canvas.SetActive(true); StartCoroutine(Routine_View(ViewText, callbackNextText)); }