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); }
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); }