Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ballsColor()
- {
- float balltextRed;
- int _ballsPos = host.reserveBalls;
- //Tint Red
- if(host.reserveBalls <= 5)
- {
- balltextRed = ((10 - _ballsPos) * 0.1f) + 0.1f;
- Balls.color = new Color(balltextRed, (_ballsPos * 0.1f), (_ballsPos * 0.1f));
- }
- else
- Balls.color = new Color(1f, 1f, 1f);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement