FixGraficDelegate
This commit is contained in:
parent
a12a7bad36
commit
4d61e90c30
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue