將物體從當前位置向指定方向移動,並且可以選擇參照的座標系。 float speed = 5f; // 速度void Update() { transform.Translate(Vector3.forward * speed ...
確定! 回上一頁