Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(gridArray[c][r] == "emptyspot")
- {
- Instantiate(obj_BlankSpot, Vector3 (currentX, currentY, 0), Quaternion.identity); //this object is a blank square where a player can place an orb
- //blankSpotScript.xCoord = c; //blankSpotScript allows me to access the x and y variables in the script attached to obj_BlankSpot
- //blankSpotScript.yCoord = r; //blankSpotScript allows me to access the x and y variables in the script attached to obj_BlankSpot
- print (blankSpotScript.xCoord);
- print (blankSpotScript.yCoord);
- }
- else if(gridArray[c][r] == "blankorb")
- {
- Instantiate(obj_PlacedBlankOrb, Vector3 (currentX, currentY, 0), Quaternion.identity); // this object is a square that hold a blank orb that can be broken
- //blankOrbScript.xCoord = c; //blankOrbScript allows me to access the x and y variables in the script attached to obj_PlacedBlankOrb
- //blankOrbScript.yCoord = r; //blankOrbScript allows me to access the x and y variables in the script attached to obj_PlacedBlankOrb
- print (blankOrbScript.xCoord);
- print (blankOrbScript.yCoord);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement