GetComponent<Rigidbody2D> ().velocity.y; // 上下 GetComponent<Rigidbody2D> ().velocity.x; // 左右 Vector2 v; v.x = Mathf.Cos(Mathf.Deg2Rad * direction) * speed; v.y = Mathf.Sin(Mathf.Deg2Rad * direction) * speed; GetComponent<Rigidbody2D>().velocity = v;