.
float xAxisValue = Input.GetAxis("Horizontal");
float zAxisValue = Input.GetAxis("Vertical");
if(Camera.current != null)
{
Camera.current.transform.Translate
(new Vector3(xAxisValue, 0.0f, zAxisValue));
}
Comments
Post a Comment