diff --git a/DangerousD/GameCore/Graphics/GraphicsComponent.cs b/DangerousD/GameCore/Graphics/GraphicsComponent.cs index 024a3d2..b631f8d 100644 --- a/DangerousD/GameCore/Graphics/GraphicsComponent.cs +++ b/DangerousD/GameCore/Graphics/GraphicsComponent.cs @@ -8,9 +8,10 @@ using System.Text; namespace DangerousD.GameCore.Graphics { + public class GraphicsComponent { - public Action actionOfAnimationEnd; + public Action actionOfAnimationEnd; private List animations; private List textures; private List texturesNames; @@ -115,8 +116,9 @@ namespace DangerousD.GameCore.Graphics { if (!currentAnimation.IsCycle) { + actionOfAnimationEnd(currentAnimation.Id); currentAnimation = neitralAnimation; - actionOfAnimationEnd(); + } currentFrame = 0;