float horizontal = Input.GetAxis("Horizontal"); //A D 左右
float vertical = Input.GetAxis("Vertical"); //W S 上 下
transform.Translate(Vector3.forward * vertical * m_speed * Time.deltaTime);//W S 上 下
transform.Translate(Vector3.right * horizontal * m_speed * Time.deltaTime);//A D 左右
void Update()
{
float horizontal = Input.GetAxis("Horizontal"); //A D 左右
float vertical = Input.GetAxis("Vertical"); //W S 上 下
float m_speed= 10f;
transform.Translate(Vector3.forward * vertical * m_speed * Time.deltaTime);//W S 上 下
transform.Translate(Vector3.right * horizontal * m_speed * Time.deltaTime);//A D 左右
}