Пример #1
0
 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();
 }
Пример #2
0
 public static void OnSceneLoad(Scene scene, LoadSceneMode mode)
 {
     if (!hasLoaded)
     {
         return;
     }
     if (mode == LoadSceneMode.Single)
     {
         if (!AddPiece.IsMenuScene(scene.name))
         {
             PortalingMaster.OnModLoad();
             PortalDevice.RebuildForNewLevel();
         }
     }
 }