Пример #1
0
    public void switchScene()
    {     // キーボードでシーン切り替え
        PlayCount playCount = GameObject.Find("Screen/PlayCount").GetComponent <PlayCount>();

        playCount.increasePlayNum();
        GameObject.Find("SoundBox").GetComponent <SoundController>().SoundSE();
        GameObject.Find("FadeSystem").GetComponent <Fade>().LoadLevel(nextSceneName, 1f);
    }
Пример #2
0
    public void SceneTrans()     // シーン切り替え プレイ回数を1つ増やす
    {
        PlayCount playCount = GameObject.Find("Screen/PlayCount").GetComponent <PlayCount>();

        sceneTransFlag = true;
        playCount.increasePlayNum();
        GameObject.Find("SoundBox").GetComponent <SoundController>().SoundSE();
        GameObject.Find("FadeSystem").GetComponent <Fade>().LoadLevel("Main", 1f);
    }