-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFall.cs
More file actions
31 lines (25 loc) · 928 Bytes
/
Copy pathFall.cs
File metadata and controls
31 lines (25 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
namespace fall {
public static class Fall {
private static LevelVoid levelVoid;
public static void PrepareLevel() {
levelVoid = new();
InitVoidTrigs();
DisablePassTrigs();
Plugin.Print("ready to fall!");
}
public static void InitVoidTrigs() {
levelVoid.FallTrigs.Value.ForEach(LevelVoid.Disable);
levelVoid.VoidObjs.Value.ForEach(LevelVoid.Add);
}
public static void DisablePassTrigs() {
levelVoid.PassTrigs.Value.ForEach(LevelVoid.Disable);
}
public static void RestoreLevel() {
levelVoid.VoidTrigs.Value.ForEach(LevelVoid.Destroy);
levelVoid.FallTrigs.Value.ForEach(LevelVoid.Enable);
levelVoid.PassTrigs.Value.ForEach(LevelVoid.Enable);
levelVoid = new();
Plugin.Print("Stopped falling.");
}
}
}