Пример #1
0
 //切换页面
 public void ToPlaySence()
 {
     bgmManager.instance.stopbgm();
     bgmName = bgmManager.instance.getcurrentAudioName();
     GLOBAL_PARA.SongInfo.SONG songSame = (GLOBAL_PARA.SongInfo.SONG)GLOBAL_PARA.SongInfo.SONG.Parse(typeof(GLOBAL_PARA.SongInfo.SONG), bgmName);
     Debug.Log("跳出");
     CreateCube.songName = songSame;
     //SampleScene为需要转换至的场景的名称
     SceneManager.LoadScene("Back_CubeDistance");
 }
Пример #2
0
 public SongInfo(GLOBAL_PARA.SongInfo.SONG song)
 {
     songName = song.ToString();
     bPM      = (int)song;
     filaPath = Application.dataPath + @"/Data/" + songName + ".json";
 }