// Animation instance has been attached to a given blender. Can only be // attached to one blender at a time. internal void Attach(AnimationBlender ab) { if (Owner != null) { Owner.RemoveAnimation(this); } Owner = ab; }
// Remove from the animation blender -- stops playing this animation public void Remove() { if (Owner != null) { AnimationBlender ab = Owner; Owner = null; ab.RemoveAnimation(this); } }
// Owner has detected that this animation should be removed internal void Detach() { Owner = null; }
// Animation instance has been attached to a given blender. Can only be // attached to one blender at a time. internal void Attach(AnimationBlender ab) { if (Owner != null) Owner.RemoveAnimation(this); Owner = ab; }