/// <summary> /// Fügt eine Animation hinzu /// </summary> /// <param name="a"></param> public static void Add(FireableAnimation a) { if (!animations.Contains(a)) { animations.Add(a); } }
public void OnRender(float partialTicks) { for (int i = animations.Count - 1; i >= 0; i--) { FireableAnimation animation = animations[i]; animation.OnRender(partialTicks); } }
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); } } }