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(); } }
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(); } }
void CreateSettingsUI() { SubMenus.Settings(); SubMenus.PlayerProperties(); }