Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Highlight()
- {
- timer += Time.deltaTime;
- if (timer >= duration)
- {
- timer -= duration;
- }
- float curveValue = _curve.Evaluate(timer);
- Color tempColor = new Color(curveValue, 0, 0, 1);
- mat.SetColor("_EmissionColor", tempColor);
- }
Add Comment
Please, Sign In to add comment