Пример #1
0
        public IEnumerator RainbowWalls()
        {
            float secondsPerBeat = (60f / bpm);

            while (true)
            {
                yield return(new WaitForSeconds(rainbowWallUpdateRate));

                try {
                    //color = ColourManager.GetTechnicolour(Time.time * RainbowWallCycleSpeed, ColourManager._technicolourWalls, ColourManager.TechnicolourTransition.SMOOTH);
                    color = ColourManager.GetLerpedFromArray(ColourManager.TechnicolourCombinedPalette, Time.time / secondsPerBeat);
                    //ChromaLogger.Log("Rainbow Walls " + color);
                    ApplyGlobalWallColours(color);
                } catch (Exception e) {
                    ChromaLogger.Log(e);
                    this.StopAllCoroutines();
                }
            }
        }
Пример #2
0
        /*
         * PALETTED
         */

        private void PaletteTick()
        {
            rainbowSaberColours[0] = ColourManager.GetLerpedFromArray(leftPalette, (Time.time * mismatchSpeedMult) / secondsPerBeat);
            rainbowSaberColours[1] = ColourManager.GetLerpedFromArray(rightPalette, (Time.time) / secondsPerBeat);
        }