Exemple #1
0
 /// <summary>
 /// Fügt eine Animation hinzu
 /// </summary>
 /// <param name="a"></param>
 public static void Add(FireableAnimation a)
 {
     if (!animations.Contains(a))
     {
         animations.Add(a);
     }
 }
Exemple #2
0
 public void OnRender(float partialTicks)
 {
     for (int i = animations.Count - 1; i >= 0; i--)
     {
         FireableAnimation animation = animations[i];
         animation.OnRender(partialTicks);
     }
 }
Exemple #3
0
 public void Update()
 {
     for (int i = animations.Count - 1; i >= 0; i--) //Einfacher um Animationen während des Durchgehens zu entfernen
     {
         FireableAnimation animation = animations[i];
         animation.Update();
         if (animation.Finished) //Entfernt die Animation wenn sie beendet ist.
         {
             animations.Remove(animation);
         }
     }
 }