Пример #1
0
 //  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;
 }
Пример #2
0
 //  Remove from the animation blender -- stops playing this animation
 public void Remove()
 {
     if (Owner != null)
     {
         AnimationBlender ab = Owner;
         Owner = null;
         ab.RemoveAnimation(this);
     }
 }