1.用transform
transform.translate(transform.forward*Time.deltaTime*2) 写这一句就能移动了,因为是transform,本身啊
2.用刚体
2.1 Rigidbody.velocity(速度) 成员变量,出现在面板上,能赋值
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { public Rigidbody rb; void Start() { rb = GetComponent<Rigidbody>(); } void FixedUpdate() { if (