static bool Prefix(SongPreviewPlayer __instance, AudioClip audioClip) { var defaultClip = __instance.GetField <AudioClip, SongPreviewPlayer>("_defaultAudioClip"); __instance.volume = audioClip == defaultClip ? 0 : 1; return(true); }
static bool Prefix(SongPreviewPlayer __instance, AudioClip audioClip) { var defaultClip = __instance.GetField <AudioClip, SongPreviewPlayer>("_defaultAudioClip"); __instance.volume = audioClip == defaultClip ? 0 : 1; return(true); }