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();
	}
Exemple #2
0
    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();
    }
Exemple #3
0
    public void StartInterpolation(OnEndCallback endCallback, bool bRotations, eWrapMode mode)
    {
        if (mState != "Reset")
        {
            return;
        }

        mState         = mode == eWrapMode.ONCE ? "Once" : "Loop";
        mRotations     = bRotations;
        mOnEndCallback = endCallback;

        SetInput();
    }
Exemple #4
0
    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();
    }
Exemple #5
0
    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();
    }
Exemple #6
0
    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();
    }
Exemple #7
0
    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();
    }
Exemple #8
0
    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();
    }
Exemple #10
0
    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;
    }