Ejemplo n.º 1
0
        public void SetWallColor(Color color, float?duration = null)
        {
            if (interceptingLightshow != null)
            {
                interceptingLightshow.OnInterceptedWallColor(color, Time.time + duration ?? -1f);

                return;
            }

            wallColor = color;

            useCustomWallColor = true;

            UpdateWallColor(Helper.IsRainbow(color) ? RainbowController.instance.GetWallColor() : color);

            disableWallColorOn = duration.HasValue ? Time.time + duration.Value : -1f;

            SetEnabled();
        }
Ejemplo n.º 2
0
        public void SetRestoreValues(CustomLightshowController lightshow)
        {
            if (useCustomSaberColors)
            {
                lightshow.OnInterceptedSaberColors(saberColorLeft, saberColorRight, disableSaberColorsOn);
            }

            if (useCustomNoteColors)
            {
                lightshow.OnInterceptedNoteColors(noteColorLeft, noteColorRight, disableNoteColorsOn);
            }

            if (useCustomWallColor)
            {
                lightshow.OnInterceptedWallColor(wallColor, disableWallColorOn);
            }
        }