예제 #1
0
        private void ResetActionMetadata()
        {
            target = null;

            currentActionIndex = 0;
            currentAction      = default(AnimationAction);
            nextAction         = default(AnimationAction);
        }
예제 #2
0
        private void SetNextAction()
        {
            currentAction = nextAction;

            if (!playBackwards) // Is this really the best way?
            {
                if (actions.Last() != currentAction)
                {
                    currentActionIndex += 1;
                    nextAction          = actions[currentActionIndex + 1];
                }
            }
            else
            {
                if (actions.First() != currentAction)
                {
                    currentActionIndex -= 1;
                    nextAction          = actions[currentActionIndex - 1];
                }
            }
        }
예제 #3
0
 public Animation Put(AnimationAction action)
 {
     actions.Add(action);
     return(this);
 }
예제 #4
0
 public Animation Put(AnimationAction action)
 {
     actions.Add(action);
     return this;
 }
예제 #5
0
        private void SetNextAction()
        {
            currentAction = nextAction;

            if (!playBackwards) // Is this really the best way?
            {
                if (actions.Last() != currentAction)
                {
                    currentActionIndex += 1;
                    nextAction = actions[currentActionIndex + 1];
                }
            }
            else
            {
                if (actions.First() != currentAction)
                {
                    currentActionIndex -= 1;
                    nextAction = actions[currentActionIndex - 1];
                }
            }
        }
예제 #6
0
        private void ResetActionMetadata()
        {
            target = null;

            currentActionIndex = 0;
            currentAction = default(AnimationAction);
            nextAction = default(AnimationAction);
        }