Unity3d 如何用按钮控制物体前后左右移动?答:var moveDirection=Vector3.zero;if(GUI.Button(Rect(width/2,0,width,height),"forward")){ moveDirection.z=1;} if(GUI.Button(Rect(width/2,height*2,width,height),"back")){ moveDirection.z=-1;} if(GUI.Button(Rect(0,height,width,height),"left")){ moveDirection.x=-1;} if...