Guest User

Untitled

a guest
May 21st, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. public void Highlight()
  2. {
  3. timer += Time.deltaTime;
  4. if (timer >= duration)
  5. {
  6. timer -= duration;
  7. }
  8. float curveValue = _curve.Evaluate(timer);
  9. Color tempColor = new Color(curveValue, 0, 0, 1);
  10. mat.SetColor("_EmissionColor", tempColor);
  11. }
Add Comment
Please, Sign In to add comment