示例#1
0
    IEnumerator DisplayContent(Definitions.Void Callback = null)
    {
        if (_debug_delay)
        {
            yield return(new WaitForSeconds(2));
        }
        else
        {
            yield return(new WaitForSeconds(0.1f));
        }

        if (FindObjectOfType <Author>().scrollHeader)
        {
            header.FlushText();
            while (!header.Completed)
            {
                yield return(null);
            }
            yield return(new WaitForSeconds(contentWait));
        }

        //content.FlushText();

        //while (!content.Completed)
        //    yield return null;

        //contentFlushed = true;

        yield return(new WaitForSeconds(1));

        //if (GameManager.Instance.InterfaceControl)
        //{
        //    GameManager.Instance.ToggleControls(true);
        //    if (GameManager.Instance.DebugLevel >= DebugLevel.Verbose)
        //        Debug.Log("Text flushed, PM enabling controls.");
        //}

        if (Callback != null)
        {
            Callback();
        }
    }