public void OnActiveSceneChanged(Scene prevScene, Scene nextScene) { if (nextScene.name == "MenuCore") { if (Gamemode.IsIsolatedLevel) // Only remove is necessary. { Logger.Log("Removing Isolated Level"); } Gamemode.IsIsolatedLevel = false; Gamemode.IsolatingMod = ""; LevelData.Clear(); } }
public void OnActiveSceneChanged(Scene prevScene, Scene nextScene) { if (nextScene.name == "HealthWarning") { Gameplay.GetUserInfo.TriggerReady(); } if (nextScene.name == "MenuCore") { Gameplay.GetUserInfo.TriggerReady(); if (Gamemode.IsIsolatedLevel) // Only remove is necessary. { Logger.Log("Removing Isolated Level"); } Gamemode.IsIsolatedLevel = false; Gamemode.IsolatingMod = ""; LevelData.Clear(); } }
public void OnActiveSceneChanged(Scene prevScene, Scene nextScene) { if (nextScene.name == SceneNames.Menu) { GetUserInfo.TriggerReady(); } if (nextScene.name == SceneNames.PostSongMenu) { GetUserInfo.TriggerReady(); if (Gamemode.IsIsolatedLevel) // Only remove is necessary. { Logger.Log("Removing Isolated Level"); } Gamemode.IsIsolatedLevel = false; Gamemode.IsolatingMod = ""; scenesTransitionSetupData = null; LevelData.Clear(); } }
void ClearData() { PlayerData.Clear(); GameData.Clear(); LevelData.Clear(); }