Пример #1
0
 private static void OnSceneLoad(Scene scene, LoadSceneMode mode)
 {
     if (!scene.Equals(null))
     {
         SceneHandler.OnSceneLoad(scene.buildIndex);
     }
 }
Пример #2
0
 void Update()
 {
     transform.SetAsLastSibling();
     if (Main.CurrentScene != Application.loadedLevel)
     {
         SceneHandler.OnSceneLoad(Application.loadedLevel);
         Main.CurrentScene = Application.loadedLevel;
     }
     MelonLoader.Main.OnUpdate();
 }
Пример #3
0
 private static void OnSceneLoad(Scene scene, LoadSceneMode mode)
 {
     if (obj == null)
     {
         MelonLoaderComponent.Create();
     }
     if (!scene.Equals(null))
     {
         SceneHandler.OnSceneLoad(scene.buildIndex);
     }
 }