public void StartInterpolation(OnEndCallback endCallback, bool bRotations, eWrapMode mode) { if (mState != "Reset") throw new System.Exception("First reset, add points and then call here"); mState = mode == eWrapMode.ONCE ? "Once" : "Loop"; mRotations = bRotations; mOnEndCallback = endCallback; SetInput(); }
public void StartInterpolation(OnEndCallback endCallback, eWrapMode mode) { if (mState != "Reset") { throw new System.Exception("First reset, add points and then call here"); } mState = mode == eWrapMode.ONCE ? "Once" : "Loop"; mOnEndCallback = endCallback; SetInput(); }
public void StartInterpolation(OnEndCallback endCallback, bool bRotations, eWrapMode mode) { if (mState != "Reset") { return; } mState = mode == eWrapMode.ONCE ? "Once" : "Loop"; mRotations = bRotations; mOnEndCallback = endCallback; SetInput(); }
public void StartInterpolation(OnEndCallback endCallback, bool bRotations, eWrapMode mode) { if (mState != "Reset") { throw new System.Exception("First reset, add points and then call here"); } // commented Debug.Log("StarT"); mState = mode == eWrapMode.ONCE ? "Once" : "Loop"; mRotations = bRotations; mOnEndCallback = endCallback; SetInput(); }
public void StartInterpolation(OnEndCallback endCallback, bool bRotations, eWrapMode mode, float velocity = 0.0f) { if (mState != "Reset") { throw new System.Exception("First reset, add points and then call here"); } mState = mode == eWrapMode.ONCE ? "Once" : "Loop"; mRotations = bRotations; mOnEndCallback = endCallback; mVelocity = velocity; SetInput(); }
public void StartInterpolation(OnEndCallback endCallback, bool bRotations, eWrapMode mode, bool isDrawer = false) { _isDrawer = isDrawer; if (mState != "Reset") { throw new System.Exception("First reset, add points and then call here"); } mState = mode == eWrapMode.ONCE ? "Once" : "Loop"; mRotations = bRotations; mOnEndCallback = endCallback; SetInput(); }
public void StartInterpolation(OnEndCallback endCallback, eWrapMode mode, bool rotates = false, bool isDrawer = false, float rotationLookAhead = 0) { _rotates = rotates; _rotationLookAhead = rotationLookAhead; _isDrawer = isDrawer; if (mState != "Reset") { throw new System.Exception("First reset, add points and then call here"); } mState = mode == eWrapMode.ONCE ? "Once" : "Loop"; mOnEndCallback = endCallback; SetInput(); }
public void StartInterpolation(OnEndCallback endCallback, bool bRotations, eWrapMode mode) { //Debug.Log(Time.realtimeSinceStartup + " " + this + " StartInterpolation " + endCallback + " " + bRotations + " " + mode); if (mState != "Reset") { throw new System.Exception("First reset, add points and then call here"); } mState = mode == eWrapMode.ONCE ? "Once" : "Loop"; mRotations = bRotations; mOnEndCallback = endCallback; SetInput(); mPaused = false; }
// -------------------------------------------------------------------------------------------- // PUBLIC MEMBERS // -------------------------------------------------------------------------------------------- public void StartInterpolation(OnPathEndCallback endCallback, OnNodeArrivalCallback nodeArrival, OnNodeLeavingCallback nodeCallback, bool bRotations, eWrapMode mode) { if (mState != "Reset") { throw new System.Exception("First reset, add points and then call here"); } mState = mode == eWrapMode.ONCE ? "Once" : "Loop"; mRotations = bRotations; mOnPathEndCallback = endCallback; mOnNodeArrivalCallback = nodeArrival; mOnNodeLeavingCallback = nodeCallback; SetInput(); }
public void StartInterpolation(OnEndCallback endCallback, bool bRotations, eWrapMode mode) { //Debug.Log(Time.realtimeSinceStartup + " " + this + " StartInterpolation " + endCallback + " " + bRotations + " " + mode); if (mState != "Reset") throw new System.Exception("First reset, add points and then call here"); mState = mode == eWrapMode.ONCE ? "Once" : "Loop"; mRotations = bRotations; mOnEndCallback = endCallback; SetInput(); mPaused = false; }