private void ResetActionMetadata() { target = null; currentActionIndex = 0; currentAction = default(AnimationAction); nextAction = default(AnimationAction); }
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]; } } }
public Animation Put(AnimationAction action) { actions.Add(action); return(this); }
public Animation Put(AnimationAction action) { actions.Add(action); return this; }