Guest User

Untitled

a guest
Jun 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. private void DrawChessBoard()
  2. {
  3. Vector3 widthLine = Vector3.right * 8;
  4. Vector3 heightLine = Vector3.forward * 8;
  5.  
  6. for (int i = 0; i <= 8; i++)
  7. {
  8. Vector3 start = Vector3.forward * i;
  9. Debug.DrawLine(start, start + widthLine);
  10. for (int j = 0; j <= 8; j++)
  11. {
  12. start = Vector3.right * j;
  13. Debug.DrawLine(start, start + heightLine);
  14. }
  15. }
  16. }
Add Comment
Please, Sign In to add comment