mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 03:56:31 +00:00
20 lines
528 B
C#
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);
|
|
}
|
|
}
|
|
} |