Files
MonoGame.Extended/Source/Demos/Demo.Platformer/Entities/Systems/SpriteAnimatorComponentSystem.cs
T
2016-08-18 23:21:37 +10:00

20 lines
528 B
C#

using Demo.Platformer.Entities.Components;
using Microsoft.Xna.Framework;
namespace Demo.Platformer.Entities.Systems
{
public class SpriteAnimatorComponentSystem : UpdatableComponentSystem
{
public SpriteAnimatorComponentSystem()
{
}
public override void Update(GameTime gameTime)
{
var components = GetComponents<SpriteAnimatorComponent>();
foreach (var component in components)
component.Animator.Update(gameTime);
}
}
}