예제 #1
0
 //クリックしたらパスとジャンル名を入れて、シーンを再読み込みさせる。
 public void clickCategoryItem()
 {
     musicSelectManager.setMusicFolderPath(this.categoryPath);
     musicSelectManager.setCategory(this.categoryName);
     musicSelectCategory.clickSe();
     musicSelectCategory.closeCategorySelect();
     Bm98Debug.Instance.Log("category path : " + this.categoryPath);
     musicSelectManager.returnMusicSelectScene();
 }
예제 #2
0
    private void GameSceneReloaded(Scene next, LoadSceneMode mode)
    {
        // シーン切り替え後のスクリプトを取得
        MusicSelectManager musicSelectManager = GameObject.Find("MusicSelectManager").GetComponent <MusicSelectManager>();

        musicSelectManager.setTotalCalorie(this.totalCalorie);
        musicSelectManager.setTotalFrameCount(this.totalFrameCount);
        musicSelectManager.setFolderCount(0);
        musicSelectManager.setMusicFolderPath(this.MUSIC_FOLDER_PATH);
        musicSelectManager.setCategory(this.category);
        musicSelectManager.setAvator(this.isAvator);
        SceneManager.sceneLoaded -= GameSceneReloaded;
    }