// Use this for initialization void Start() { t = this.transform; q = t.rotation; if (curve != null) { curve.ResetCurve(); t.position = curve.GetCurvePoint(); } }