Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1. i - переменная типа int;
  2.  
  3. 1) int x = Mathf.Round(rectNormal.x) + 5 + ((i % 4) * 80);
  4. 2) int y = Mathf.Round((i / 5f) + 0.5f) * 5;
  5.  
  6. Проблема:
  7.  
  8. Cannot implicitly convert type `float' to `int'. An explicit conversion exists (are you missing a cast?)
  9.  
  10. в обоих строчках.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement