public void Awake() { if (Instance == null) { Instance = this; SceneManager.activeSceneChanged += SceneManagerOnActiveSceneChanged; SceneManager.sceneLoaded += SceneManager_sceneLoaded; DontDestroyOnLoad(gameObject); Plugin.Log("Tweak Manager started.", Plugin.LogLevel.DebugOnly); MoveEnergyBar.OnLoad(transform); ScoreMover.OnLoad(transform); InGameClock.OnLoad(transform); TimeSpentClock.OnLoad(transform); IngameTimeSpentClock.OnLoad(transform); NoteHitVolume.OnLoad(transform); OneColour.OnLoad(transform); SongDataModifer.OnLoad(transform); MusicVolume.OnLoad(transform); FireworksTweaks.OnLoad(transform); ClickShockwave.OnLoad(transform); LevelsFailedTweak.OnLoad(transform); } else { Destroy(this); } }
public void Awake() { if (Instance == null) { Instance = this; SceneManager.activeSceneChanged += SceneManagerOnActiveSceneChanged; DontDestroyOnLoad(gameObject); Console.WriteLine("Tweak Manager started."); string[] oldPlugins = new string[] { "In Game Time", "Move Energy Bar", "Note Hit Volume" }; foreach (var plugin in IllusionInjector.PluginManager.Plugins) { if (oldPlugins.Contains(plugin.Name)) { warningPlugins.Add(plugin.Name); Console.WriteLine("WARNING:" + plugin.Name + " is not needed anymore. Please remove it. BeatSaberTweaks has replaced it."); } if (plugin.Name == "CameraPlus") { CameraPlusInstalled = true; } } MoveEnergyBar.OnLoad(transform); InGameClock.OnLoad(transform); NoteHitVolume.OnLoad(transform); MenuBGVolume.OnLoad(transform); } else { Destroy(this); } }
public void Awake() { if (Instance == null) { Instance = this; SceneManager.activeSceneChanged += SceneManagerOnActiveSceneChanged; SceneManager.sceneLoaded += SceneManager_sceneLoaded; DontDestroyOnLoad(gameObject); Console.WriteLine("Tweak Manager started."); MoveEnergyBar.OnLoad(transform); ScoreMover.OnLoad(transform); InGameClock.OnLoad(transform); NoteHitVolume.OnLoad(transform); MenuBGVolume.OnLoad(transform); OneColour.OnLoad(transform); SongDataModifer.OnLoad(transform); } else { Destroy(this); } }