Advertisement
rubendelatorre

Untitled

Nov 28th, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. void ballsColor()
  2. {
  3. float balltextRed;
  4. int _ballsPos = host.reserveBalls;
  5.  
  6. //Tint Red
  7. if(host.reserveBalls <= 5)
  8. {
  9. balltextRed = ((10 - _ballsPos) * 0.1f) + 0.1f;
  10. Balls.color = new Color(balltextRed, (_ballsPos * 0.1f), (_ballsPos * 0.1f));
  11. }
  12. else
  13. Balls.color = new Color(1f, 1f, 1f);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement