예제 #1
0
        public void Tick()
        {
            _gradientColor      = Color.HSVToRGB(Mathf.Repeat(Time.time * _timeGlobalMult, 1f), 1f, 1f);
            _gradientLeftColor  = Color.HSVToRGB(Mathf.Repeat((Time.time * _timeMult) + _mismatchSpeedOffset, 1f), 1f, 1f);
            _gradientRightColor = Color.HSVToRGB(Mathf.Repeat(Time.time * _timeMult, 1f), 1f, 1f);

            UpdateTechnicolourEvent?.Invoke();
        }
예제 #2
0
        private void Update()
        {
            float timeMult       = 0.1f;
            float timeGlobalMult = 0.2f;

            _gradientColor      = Color.HSVToRGB(Mathf.Repeat(Time.time * timeGlobalMult, 1f), 1f, 1f);
            _gradientLeftColor  = Color.HSVToRGB(Mathf.Repeat((Time.time * timeMult) + _mismatchSpeedOffset, 1f), 1f, 1f);
            _gradientRightColor = Color.HSVToRGB(Mathf.Repeat(Time.time * timeMult, 1f), 1f, 1f);

            UpdateTechnicolourEvent?.Invoke();
        }