Esempio n. 1
0
 internal static void OnActiveSceneChanged(Scene current, Scene _)
 {
     if (current.name == "GameCore")
     {
         LightColorizer.ClearLSEColorManagers();
         ObstacleColorizer.ClearOCColorManagers();
         BombColorizer.ClearBNCColorManagers();
         NoteColorizer.ClearCNVColorManagers();
         SaberColorizer.ClearBSMColorManagers();
     }
 }
Esempio n. 2
0
#pragma warning disable SA1313 // Parameter names should begin with lower-case letter
        internal static void OnActiveSceneChanged(Scene current, Scene _)
#pragma warning restore SA1313 // Parameter names should begin with lower-case letter
        {
            if (current.name == "GameCore")
            {
                LightColorizer.ClearLSEColorManagers();
                ObstacleColorizer.ClearOCColorManagers();
                BombColorizer.ClearBNCColorManagers();
                NoteColorizer.ClearCNVColorManagers();
                SaberColorizer.ClearBSMColorManagers();
            }
        }
Esempio n. 3
0
 internal static void OnActiveSceneChanged(Scene prevScene, Scene current)
 {
     if (current.name == "GameCore")
     {
         LightColorizer.ClearLSEColorManagers();
         ObstacleColorizer.ClearOCColorManagers();
         BombColorizer.ClearBNCColorManagers();
         NoteColorizer.ClearCNVColorManagers();
         SaberColorizer.ClearBSMColorManagers();
     }
     if (current.name == "MenuViewControllers" && ChromaConfig.Instance.HueEnabled == true)
     {
         HueManager.Disconnect(LightInfo.client);
     }
     if (current.name == "EmptyTransition" && prevScene.name == "MenuViewControllers" && ChromaConfig.Instance.HueEnabled == true)
     {
         hueCts.Cancel();
         hueCts = new System.Threading.CancellationTokenSource();
         HueManager.connect(hueCts.Token);
     }
 }