Esempio n. 1
0
        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
            });
        }
Esempio n. 2
0
        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();
        }