public void Draw(GameTime GameTime, SpriteBatch SpriteBatch) { DamageFloatingTextList.ForEach((x) => { x.SpriteNumericField.Draw(GameTime, SpriteBatch); #if DEBUG DebugLine dL = new DebugLine(Color.Red); dL.Update(Cursor.Instance.CurrentFlipbook.Position, x.SpriteNumericField.Position); dL.Draw(SpriteBatch); #endif }); }
public void Update(GameTime GameTime) { DamageFloatingTextList.ForEach((x) => { x.Update(GameTime); if (x.IsExpired) { UnusedFloatingTextList.Add(x); } }); UnusedFloatingTextList.ForEach((x) => DamageFloatingTextList.Remove(x)); UnusedFloatingTextList.Clear(); }