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(); }
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(); }