revorkAnimator3

This commit is contained in:
Timofey06 2023-08-14 20:15:32 +03:00
parent 9eb6ae7113
commit 27757bdfc2
2 changed files with 3 additions and 3 deletions

View file

@ -22,7 +22,7 @@ namespace DangerousD.GameCore
Pos = pos;
Width = 500;
Height = 100;
Animator = new GraphicsComponent(new() { "playerIdle" });
//Animator = new GraphicsComponent(new() { "playerIdle" });
GameManager.Register(this);
}
@ -38,7 +38,7 @@ namespace DangerousD.GameCore
public virtual void Draw(SpriteBatch spriteBatch)
{
Animator.DrawAnimation(Rectangle, "playerIdle", spriteBatch);
//Animator.DrawAnimation(Rectangle, "playerIdle", spriteBatch);
}
}
}

View file

@ -8,7 +8,7 @@ using System.Text;
namespace DangerousD.GameCore.Graphics
{
class GraphicsComponent
public class GraphicsComponent
{
private List<AnimationContainer> animations;
private List<Texture2D> textures;