private void InstantiateAudio() { koreographer.UnloadKoreography(koreographer.GetKoreographyAtIndex(0)); koreographer.LoadKoreography(koreographer.GetKoreographyAtIndex(0)); musicPlayer = new FMODMusicPlayer(clip); visor = new FMODAudioVisor(musicPlayer.fmodInstance, koreographer, clip); }
void Awake() { if (instance == null) { instance = this; } DontDestroyOnLoad(gameObject); }