Пример #1
0
 public AnimationStorage(List<Animation> f)
 {
     this.asl = new AnimationStorageListener(this);
     if (f != null)
     {
         playAnimations = f;
     }
     else
     {
         playAnimations = new List<Animation>(
                 CollectionUtils.INITIAL_CAPACITY);
     }
     foreach (Animation a in playAnimations)
     {
         if (a != null)
         {
             a.Listener = asl;
         }
     }
     this.size = playAnimations.Count;
     this.loopOverToPlay = true;
     this.loopOverToRemove = false;
 }
Пример #2
0
 public AnimationStorage(List <Animation> f)
 {
     this.asl = new AnimationStorageListener(this);
     if (f != null)
     {
         playAnimations = f;
     }
     else
     {
         playAnimations = new List <Animation>(
             CollectionUtils.INITIAL_CAPACITY);
     }
     foreach (Animation a in playAnimations)
     {
         if (a != null)
         {
             a.Listener = asl;
         }
     }
     this.size             = playAnimations.Count;
     this.loopOverToPlay   = true;
     this.loopOverToRemove = false;
 }