摘要: 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(){ 阅读全文
posted @ 2013-03-20 00:02 _尼克 阅读(142) 评论(0) 推荐(0) 编辑