private IEnumerator OpenFishing() { AsyncOperation async; async = SceneManager.LoadSceneAsync("Scenes/GoldMiner", LoadSceneMode.Additive); while (!async.isDone) { yield return(null); } Debug.Log(async.isDone); Scene activeScene = SceneManager.GetActiveScene(); SceneManager.UnloadScene(activeScene.buildIndex); SceneManager.SetActiveScene(SceneManager.GetSceneByName("GoldMiner")); gA.CrossFadeToNewSong(2, 0, 1); }
void hitNewSongButton(int songNumber, int layerNumber) { gA.CrossFadeToNewSong(songNumber, layerNumber); }
void StartMusic() { amp.CrossFadeToNewSong(1, 0, 0.1f); }