Beispiel #1
0
 private void SceneManager_sceneLoaded(Scene scene, LoadSceneMode mode)
 {
     if (scene.name == "TutorialEnvironment")
     {
         if (!enabled || safetyEnabled)
         {
             return;
         }
         safetyEnabled = true; //Disable mod
         return;
     }
     else
     {
         safetyEnabled = false;
     }                                           //Enable Mod
     if (scene.name == "Menu" && !safetyEnabled) /// Settings Submenus
     {
         SubMenus.Settings();
         SubMenus.PlayerProperties();
         if (!enabled || safetyEnabled)
         {
             return;
         }
         BeFitUI.OnLoad();
     }
 }
Beispiel #2
0
 private void SceneManager_sceneLoaded(Scene arg0, LoadSceneMode arg1)
 {
     if (arg0.name == "TutorialEnvironment")
     {
         safetyEnabled = true; //Disable mod
         return;
     }
     else
     {
         safetyEnabled = false;
     }                                          //Enable Mod
     if (arg0.name == "Menu" && !safetyEnabled) /// Settings Submenus
     {
         SubMenus.Settings();
         SubMenus.playerProperties();
     }
 }
Beispiel #3
0
 void CreateSettingsUI()
 {
     SubMenus.Settings();
     SubMenus.PlayerProperties();
 }