예제 #1
0
    IEnumerator MoveTitle()
    {
        audioSource.PlayOneShot(selectSound);
        forTitleText.text = "";
        yield return(new WaitForSeconds(0.25f));

        forTitleText.text = "PRESS RETURN TO TITLE";
        yield return(new WaitForSeconds(0.25f));

        forTitleText.text = "";
        yield return(new WaitForSeconds(0.25f));

        forTitleText.text = "PRESS RETURN TO TITLE";
        yield return(new WaitForSeconds(0.15f));

        sceneScript.LoadTitle();
    }
    IEnumerator MoveTitle()
    {
        audioSource.PlayOneShot(selectSound);
        string tmpText = forTitleText.text;

        forTitleText.text = "";
        yield return(new WaitForSeconds(0.25f));

        forTitleText.text = tmpText;
        yield return(new WaitForSeconds(0.25f));

        forTitleText.text = "";
        yield return(new WaitForSeconds(0.25f));

        forTitleText.text = tmpText;
        yield return(new WaitForSeconds(0.25f));

        sceneScript.LoadTitle();
    }