示例#1
0
    IEnumerator Start()
    {
        audioSource      = gameObject.GetComponent <AudioSource>();
        audioSource.clip = audioClip;
        audioSource.Play();

        Gallery.BadFlagSet(0);
        SaveFlag.SetBool(Gallery.endNames[2][0], true);
        //PlayerPrefs.Save();
        if (Gallery.galleryFlag == true)
        {
            NextScene = "Gallery";
        }
        enabled = false;
        yield return(new WaitForSeconds(2));

        enabled = true;

        touchWindow = GetComponent <TouchWindow>();
        touchWindow.SetText(names, talks, NextScene, false); // タッチ時のテキスト情報を専用ファイルに渡す
    }