Example #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;
 }
Example #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);
     }
 }
 //  Remove from the animation blender -- stops playing this animation
 public void Remove()
 {
   if (Owner != null)
   {
     AnimationBlender ab = Owner;
     Owner = null;
     ab.RemoveAnimation(this);
   }
 }
Example #4
0
 //  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;
 }
 //  Owner has detected that this animation should be removed
 internal void Detach()
 {
   Owner = null;
 }