I have a basic cube GameObject. I am trying to get it to move along each axis (X, Y, Z) by one unit when the user clicks an HTML button in the Unity Web Player. I can get it to call the functions properly, but I am not sure how to actually change the X, Y, and Z positions through code. Basically I want it to do something like this:
-User clicks green button -Browser calls function that does the following
Function moveGreen() { cubeObject.x = cubeObject.x + 1; }
What do I need to add to my GameObject, and what is the syntax to make the adjustment to the position like in my pseudo code above? Any help is appreciated. Thanks.