Ejemplo n.º 1
0
        public void setMoveState(TypePathShapeState newState = null)
        {
            if (newState == null)
            {
                newState = TypePathShapeState.Forward;
            }

            pInvokes.m_ts.fnTSPathShape_setMoveState(_ID, (int)newState);
        }
Ejemplo n.º 2
0
        public override void onPathChange()
        {
            // Save the current position and move state before resetting the path
            float pos = getPathPosition();
            TypePathShapeState moveState = movementState;

            this.reset(0, false); // Stop and reset the shapes path, don't create first node

            if (!this.Path.isObject())
            {
                return;
            }

            this.pushPath(this.Path);
            this.setPathPosition(pos);
            this.setMoveState(moveState);
        }