public void Restart() { if (controlPoints != null) { mPos = new SplineV(); mRot = new SplineQ(); float time = Time.time; foreach (Transform t in controlPoints) { mPos.AddKey(time, t.position); mRot.AddKey(time, t.rotation); time += timePerPoint; } } }
public void Restart() { if (controlPoints != null) { mPos = new SplineV(); mRot = new SplineQ(); float time = Time.time; foreach (Transform t in controlPoints) { mPos.AddKey(time, t.position); mRot.AddKey(time, t.rotation); time += timePerPoint; } } }