Beispiel #1
0
 internal static void OnActiveSceneChanged(Scene current, Scene _)
 {
     if (current.name == "GameCore")
     {
         LightColorizer.ClearLSEColorManagers();
         ObstacleColorizer.ClearOCColorManagers();
         BombColorizer.ClearBNCColorManagers();
         NoteColorizer.ClearCNVColorManagers();
         SaberColorizer.ClearBSMColorManagers();
     }
 }
Beispiel #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();
            }
        }
Beispiel #3
0
        internal static void OnActiveSceneChanged(Scene current, Scene _)
        {
            if (current.name == "GameCore")
            {
                BombColorizer.Reset();
                LightColorizer.Reset();
                NoteColorizer.Reset();
                ObstacleColorizer.Reset();
                SaberColorizer.Reset();

                TrackLaneRingsManagerAwake.RingManagers.Clear();
            }
        }
Beispiel #4
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);
     }
 }
Beispiel #5
0
#pragma warning disable SA1313 // Parameter names should begin with lower-case letter
        private static void Prefix(SaberModelController __instance, Saber saber)
#pragma warning restore SA1313 // Parameter names should begin with lower-case letter
        {
            SaberColorizer.BSMStart(__instance, saber.saberType);
        }
 private void RainbowSabers()
 {
     SaberColorizer.GlobalColorize(_rainbowSaberColors[0], SaberType.SaberA);
     SaberColorizer.GlobalColorize(_rainbowSaberColors[1], SaberType.SaberB);
 }
 private void RainbowSabers()
 {
     SaberColorizer.SetAllSaberColors(_rainbowSaberColors[0], _rainbowSaberColors[1]);
 }
 private static void Prefix(Saber ____leftSaber, Saber ____rightSaber)
 {
     SaberColorizer.BSMStart(____leftSaber, ____leftSaber.saberType);
     SaberColorizer.BSMStart(____rightSaber, ____rightSaber.saberType);
 }