Пример #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();
     }
 }
Пример #2
0
 void CreateSettingsUI()
 {
     SubMenus.Settings();
     SubMenus.PlayerProperties();
 }