Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
        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);
            }
        }