public virtual void Update(float passedTime) { if (child != null) { if (child.IsFinalized()) { child.Finish(); } if (animation.IsFinalized() || movement.IsFinalized()) { Finish(); } if (child.Animation.Status == AnimationStatus.StandBy && (animation.IsFinalized() || Animation.IsReady || movement.IsFinalized())) { child.Movement.Origin = Movement.Destiny; child.Start(); } child.Update(passedTime); } movement.Update(passedTime); animation.Position = movement.Position; animation.Update(passedTime); }
public virtual void Update(float passedTime) { AnimatedMovement action = currentActions.Peek(); if (action.IsFinalized()) { RemoveActualAnimatedMovement(); } action.Update(passedTime); }