摘要:
using UnityEngine;[RequireComponent(typeof(Rigidbody))]public class MovingPlatform : MonoBehaviour{public float speed;public Transform start;public Transform end;private Vector3 startPos;private Vector3 endPos;private float distance;private Vector3 direction;private Rigidbody rb;public void Awake(){ 阅读全文