1.1 摄像机的移动

void Update () {
float x = Input.GetAxis ("Horizontal") * Time.deltaTime * speed;
float z = Input.GetAxis ("Vertical") * Time.deltaTime * speed;
transform.Translate (x, 0, z);
print (x);
}

posted @ 2017-08-16 15:52  xiajing12345  阅读(158)  评论(0编辑  收藏  举报