Changed casting for timemodifiers

This commit is contained in:
Marco 2025-02-14 13:47:20 +01:00
commit c318bd8c13
7 changed files with 15 additions and 18 deletions

View file

@ -36,11 +36,7 @@ public partial class Bullet : Area2D
_gameManager = gameManager;
// Ugly hack to make instances unique
_modifiers = _bulletInfo.TimeModifiers.Select(x => new ModifierWrapper()
{
TimeModifier = x.TimeModifier,
Applied = x.Applied
}).ToList();
_modifiers = _bulletInfo.TimeModifiers.Select(x => x.Wrap()).ToList();
}