File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,18 @@ public static void Load() {
20
20
On . Celeste . DashBlock . RemoveAndFlagAsGone += DashBlockRemoveAndFlagAsGone ;
21
21
}
22
22
23
+ public static void Unload ( ) {
24
+ On . Celeste . Player . ctor -= ctor ;
25
+ On . Celeste . Level . LoadLevel -= LoadLevel ;
26
+ On . Celeste . Player . Die -= PlayerDie ;
27
+ On . Celeste . LevelExit . Routine -= RespawnRoutine ;
28
+ On . Celeste . Player . Pickup -= Pickup ;
29
+ On . Celeste . Lookout . LookRoutine -= LookRoutine ;
30
+ On . Celeste . LevelEnter . Go -= LevelEnterGo ;
31
+ On . Celeste . DashBlock . Break_Vector2_Vector2_bool_bool -= DashBlockBreak ;
32
+ On . Celeste . DashBlock . RemoveAndFlagAsGone -= DashBlockRemoveAndFlagAsGone ;
33
+ }
34
+
23
35
private static void DashBlockRemoveAndFlagAsGone ( On . Celeste . DashBlock . orig_RemoveAndFlagAsGone orig , DashBlock self ) {
24
36
if ( self is FactoryActivatorDashBlock ) {
25
37
self . RemoveSelf ( ) ;
Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ public override void Load() {
28
28
FactoryHelperHooks . Load ( ) ;
29
29
}
30
30
31
- public override void Unload ( ) { }
31
+ public override void Unload ( ) {
32
+ FactoryHelperHooks . Unload ( ) ;
33
+ }
32
34
}
33
35
}
You can’t perform that action at this time.
0 commit comments