public bool PlayMusic(SoundID soundID) { // Stop current music if (musicSource != null) { // Stop music musicSource.Stop(); // Set disabled musicSource.enabled = false; } // Set music source musicSource = musicLookup[soundID]; if (musicSource != null) { #if EDIT_MODE musicSource.Copy(prefabMusicLookup[soundID]); #endif // Set enabled musicSource.enabled = true; // Play music musicSource.Play(); return true; } return false; }