示例#1
0
 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();
     }
 }
示例#2
0
 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();
     }
 }
示例#3
0
 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();
     }
 }
示例#4
0
 void ClearData()
 {
     PlayerData.Clear();
     GameData.Clear();
     LevelData.Clear();
 }