Example #1
0
    // <<<<<<< feature/kosuke_debug
    //     private int enterCount = 0;
    //     //public static int score = 0;
    //     //public static int HP = 100;
    //     private float timeleft;


    //     // Use this for initialization
    //     IEnumerator Start () {
    //         audioSource = gameObject.GetComponent<AudioSource>();
    //         audioSource.clip = audioClip;
    //         audioSource.Play();
    //         enabled = false;
    //         yield return new WaitForSeconds(2);
    //         enabled = true;

    IEnumerator Start()
    {
        audioSource      = gameObject.GetComponent <AudioSource>();
        audioSource.clip = audioClip;
        audioSource.Play();

        enabled = false;
        yield return(new WaitForSeconds(2));

        enabled = true;

        touchWindow = GetComponent <TouchWindow>();
        touchWindow.SetText(names, talks, NextScene, false); // タッチ時のテキスト情報を専用ファイルに渡す
    }
Example #2
0
    IEnumerator Start()
    {
        audioSource      = gameObject.GetComponent <AudioSource>();
        audioSource.clip = audioClip;
        audioSource.Play();

        enabled = false;
        yield return(new WaitForSeconds(2));

        enabled = true;

        touchWindow = GetComponent <TouchWindow>();
        touchWindow.SetText(names, talks, NextScene, true);          // タッチ時のテキスト情報を専用ファイルに渡す
        touchWindow.SetBack(Back, backSelectNumber, backEnterCount); // 背景切り替え時情報を専用ファイルに渡す
    }
Example #3
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); // タッチ時のテキスト情報を専用ファイルに渡す
    }
Example #4
0
    IEnumerator Start()
    {
        audioSource      = gameObject.GetComponent <AudioSource>();
        audioSource.clip = audioClip;
        audioSource.Play();

        Gallery.BitterFlagSet(2);
        SaveFlag.SetBool(Gallery.endNames[1][2], 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, true);          // タッチ時のテキスト情報を専用ファイルに渡す
        touchWindow.SetBack(Back, backSelectNumber, backEnterCount); // 背景切り替え時情報を専用ファイルに渡す
    }