Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var gridArrayScript : scr_gridArray;
- var xCoord : int;
- var yCoord : int;
- function Awake()
- {
- xCoord = gridArrayScript.r; //sets xCoord = to the c value in the loops for the 2D array
- yCoord = gridArrayScript.c; //sets yCoord = to the r value in the loops for the 2D array
- }
- function OnMouseDown ()
- {
- print (xCoord);
- print (yCoord);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement