From 4d61e90c305d7e15ae2b0c4d5f29453ffc169342 Mon Sep 17 00:00:00 2001 From: Timofey06 Date: Thu, 17 Aug 2023 11:03:16 +0300 Subject: [PATCH] FixGraficDelegate --- DangerousD/GameCore/Graphics/GraphicsComponent.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;