public static void OnModLoad() { curve = new AnimationCurve(new Keyframe(0f, 0f, 3f, 3f), new Keyframe(1f, 1f, 0f, 0f)); PortalingMaster.OnModLoad(); PortalDevice.OnModLoad(); Portal.LoadConfig(); }
public static void OnSceneLoad(Scene scene, LoadSceneMode mode) { if (!hasLoaded) { return; } if (mode == LoadSceneMode.Single) { if (!AddPiece.IsMenuScene(scene.name)) { PortalingMaster.OnModLoad(); PortalDevice.RebuildForNewLevel(); } } }