예제 #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);
     }
 }
예제 #2
0
 public void OnRender(float partialTicks)
 {
     for (int i = animations.Count - 1; i >= 0; i--)
     {
         FireableAnimation animation = animations[i];
         animation.OnRender(partialTicks);
     }
 }
예제 #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);
         }
     }
 }