public void Unload() { On.Celeste.LightingRenderer.Render -= LightingRenderer_Render; On.Monocle.Particle.Render -= Particle_Render; On.Celeste.BackdropRenderer.Render -= BackdropRenderer_Render; On.Celeste.CrystalStaticSpinner.ctor_Vector2_bool_CrystalColor -= CrystalStaticSpinner_ctor; On.Celeste.DustStyles.Get_Session -= DustStyles_Get_Session; On.Celeste.LavaRect.Wave -= LavaRect_Wave; On.Celeste.DreamBlock.Lerp -= DreamBlock_Lerp; On.Celeste.FloatingDebris.ctor_Vector2 -= FloatingDebris_ctor; On.Celeste.MoonCreature.ctor_Vector2 -= MoonCreature_ctor; On.Celeste.LightningRenderer.Render -= LightningRenderer_Render; On.Celeste.LightningRenderer.Bolt.Render -= Bolt_Render; instance = null; }
public void Unload() { On.Celeste.LightingRenderer.Render -= LightingRenderer_Render; On.Monocle.Particle.Render -= Particle_Render; IL.Celeste.BackdropRenderer.Render -= BackdropRenderer_Render; On.Celeste.CrystalStaticSpinner.CreateSprites -= CrystalStaticSpinner_CreateSprites; On.Celeste.DustStyles.Get_Session -= DustStyles_Get_Session; On.Celeste.LavaRect.Wave -= LavaRect_Wave; On.Celeste.DreamBlock.Lerp -= DreamBlock_Lerp; On.Celeste.FloatingDebris.ctor_Vector2 -= FloatingDebris_ctor; On.Celeste.MoonCreature.ctor_Vector2 -= MoonCreature_ctor; On.Celeste.LightningRenderer.Render -= LightningRenderer_Render; IL.Celeste.LightningRenderer.Render -= LightningRenderer_RenderIL; On.Celeste.LightningRenderer.Bolt.Render -= Bolt_Render; On.Celeste.Decal.Render -= Decal_Render; On.Celeste.SummitCloud.Render -= SummitCloudOnRender; On.Celeste.Level.Begin -= Level_Begin; customSpinnerHook?.Dispose(); rainbowSpinnerColorControllerHook?.Dispose(); customSpinnerHook = null; rainbowSpinnerColorControllerHook = null; instance = null; }