float speed = 20;
void Update()
{
float hor = Input.GetAxis("Horizontal");
float ver = Input.GetAxis("Vertical");
transform.position += new Vector3(hor, 0, ver) * Time.deltaTime * speed;
}
tranform
最新推荐文章于 2024-07-11 10:41:40 发布