public void Reset() { mNodes.Clear(); mState = "Reset"; mCurrentIdx = 1; mCurrentTime = 0; mRotations = eRotationMode.PATH_ANGLE; mEndPointsMode = eEndPointsMode.AUTO; }
public void StartInterpolation(OnEndCallback endCallback, eRotationMode rotations, eWrapMode mode) { if (mState != "Reset") { throw new System.Exception("First reset, add points and then call here"); } mState = mode == eWrapMode.ONCE ? "Once" : "Loop"; mRotations = rotations; mOnEndCallback = endCallback; SetInput(); }