Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. var point1 = _BrokeIntensityDistribution.Evaluate(_Timer / _MaxWorkTime);
  2. var point2 = _BrokeIntensityDistribution.Evaluate((_Timer - Time.deltaTime) / _MaxWorkTime);
  3. if(Random.Range(0, 1f) < (point1 + point2) * Time.deltaTime / (2f * _MaxWorkTime))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement