Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var point1 = _BrokeIntensityDistribution.Evaluate(_Timer / _MaxWorkTime);
- var point2 = _BrokeIntensityDistribution.Evaluate((_Timer - Time.deltaTime) / _MaxWorkTime);
- if(Random.Range(0, 1f) < (point1 + point2) * Time.deltaTime / (2f * _MaxWorkTime))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement