FixGraficDelegate

This commit is contained in:
Timofey06 2023-08-17 11:03:16 +03:00
parent a12a7bad36
commit 4d61e90c30

View file

@ -8,9 +8,10 @@ using System.Text;
namespace DangerousD.GameCore.Graphics
{
public class GraphicsComponent
{
public Action actionOfAnimationEnd;
public Action<string> actionOfAnimationEnd;
private List<AnimationContainer> animations;
private List<Texture2D> textures;
private List<string> texturesNames;
@ -115,8 +116,9 @@ namespace DangerousD.GameCore.Graphics
{
if (!currentAnimation.IsCycle)
{
actionOfAnimationEnd(currentAnimation.Id);
currentAnimation = neitralAnimation;
actionOfAnimationEnd();
}
currentFrame = 0;