private EventInstance AudioOnPlay_string_Vector2(On.Celeste.Audio.orig_Play_string_Vector2 orig, string path, Vector2 position) { if (shouldBeMute) { return(getDummyEventInstance()); } return(orig(path, position)); }
private EventInstance AudioOnPlay_string_Vector2(On.Celeste.Audio.orig_Play_string_Vector2 orig, string path, Vector2 position) { EventInstance eventInstance = orig(path, position); if (Manager.FrameLoops >= 2) { eventInstance?.setVolume(0); } return(eventInstance); }