public void OnUnload()
 {
     DeepCloneUtils.Clear();
     SaveLoadAction.OnUnload();
     EventInstanceUtils.OnUnhook();
     On.Celeste.Level.Update       -= CheckButtonsOnLevelUpdate;
     On.Monocle.Scene.Begin        -= ClearStateWhenSwitchScene;
     On.Celeste.PlayerDeadBody.End -= AutoLoadStateWhenDeath;
 }
Пример #2
0
 public void OnLoad()
 {
     DeepClonerUtils.Config();
     SaveLoadAction.OnLoad();
     EventInstanceUtils.OnHook();
     StateMarkUtils.OnLoad();
     On.Celeste.Level.Update       += CheckButtonsAndUpdateBackdrop;
     On.Monocle.Scene.Begin        += ClearStateWhenSwitchScene;
     On.Celeste.PlayerDeadBody.End += AutoLoadStateWhenDeath;
 }