diff --git a/DangerousD/GameCore/Graphics/GraphicsComponent.cs b/DangerousD/GameCore/Graphics/GraphicsComponent.cs index 27c66a0..024a3d2 100644 --- a/DangerousD/GameCore/Graphics/GraphicsComponent.cs +++ b/DangerousD/GameCore/Graphics/GraphicsComponent.cs @@ -10,6 +10,7 @@ namespace DangerousD.GameCore.Graphics { public class GraphicsComponent { + public Action actionOfAnimationEnd; private List animations; private List textures; private List texturesNames; @@ -115,9 +116,11 @@ namespace DangerousD.GameCore.Graphics if (!currentAnimation.IsCycle) { currentAnimation = neitralAnimation; + actionOfAnimationEnd(); } currentFrame = 0; + } buildSourceRectangle();