Beispiel #1
0
 public void SceneManagerOnActiveSceneChanged(Scene arg0, Scene scene)
 {
     try
     {
         //if (SettingsUI.isMenuScene(scene))
         //    {
         //        if (model == null)
         //        {
         //            model = Resources.FindObjectsOfTypeAll<MainSettingsModel>().FirstOrDefault();
         //            rumble = model.controllersRumbleEnabled;
         //        }
         //        model.controllersRumbleEnabled = rumble;
         //    }
         if (SettingsUI.isGameScene(scene) && Settings.OneColour && TweakManager.IsPartyMode())
         {
             var loader = SceneEvents.GetSceneLoader();
             if (loader != null)
             {
                 loader.loadingDidFinishEvent += LoadingDidFinishEvent;
             }
         }
     }
     catch (Exception e)
     {
         Console.WriteLine("Tweaks (OneColour) done f****d up: " + e);
     }
 }
 public void SceneManagerOnActiveSceneChanged(Scene arg0, Scene scene)
 {
     try
     {
         if (Settings.MoveEnergyBar && SettingsUI.isGameScene(scene))
         {
             var loader = SceneEvents.GetSceneLoader();
             if (loader != null)
             {
                 loader.loadingDidFinishEvent += LoadingDidFinishEvent;
             }
         }
     }
     catch (Exception e)
     {
         Console.WriteLine("Tweaks (EnergyBar) done f****d up: " + e);
     }
 }
 public void SceneManagerOnActiveSceneChanged(Scene arg0, Scene scene)
 {
     try
     {
         if (SettingsUI.isGameScene(scene))
         {
             if (TweakManager.IsPartyMode() && Settings.OverrideJumpSpeed)
             {
                 var loader = SceneEvents.GetSceneLoader();
                 if (loader != null)
                 {
                     loader.loadingDidFinishEvent += LoadingDidFinishEvent;
                 }
             }
         }
     }
     catch (Exception e)
     {
         Console.WriteLine("Tweaks (SongDataModifer) done f****d up: " + e);
     }
 }