public AnimationPart() { sortIndex = 0; flip = SpriteEffects.None; parent = null; name = ""; scale = Vector2.One; origin = Vector2.One * 0.5f; color = Color.White; children = new List <AnimationPart>(); events = new List <AnimationEvent>(); }
public abstract void Update(float dt, AnimationPart part, float animationProgress, AnimationEvent nextEvent);
public AnimationPart AddChild(AnimationPart child) { child.parent = this; children.Add(child); return(this); }