Advertisement
Guest User

Code

a guest
Sep 4th, 2014
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  1. random = convertGridToPoints (Random.Range(1, (100/2)/2));
  2.  
  3. //Converts Random Grid To Co-ordinates - Should Be Always Returning Positive
  4.     private float convertGridToPoints (float randGrid){
  5.  
  6.         float grid = randGrid * 2;
  7.  
  8.         randGrid = Mathf.RoundToInt(grid);
  9.         return randGrid;
  10.  
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement