예제 #1
0
 public void Reset()
 {
     mNodes.Clear();
     mState         = "Reset";
     mCurrentIdx    = 1;
     mCurrentTime   = 0;
     mRotations     = eRotationMode.PATH_ANGLE;
     mEndPointsMode = eEndPointsMode.AUTO;
 }
예제 #2
0
    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();
    }