FixErrorsInGraficDelegate

This commit is contained in:
Timofey06 2023-08-17 11:11:23 +03:00
parent 590540ab61
commit f7ef5e835b

View file

@ -16,10 +16,10 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities
{ {
Width = 32; Width = 32;
Height = 64; Height = 64;
GraphicsComponent.actionOfAnimationEnd += () => /*GraphicsComponent.actionOfAnimationEnd += () =>
{ {
AppManager.Instance.ChangeGameState(GameState.GameOver); AppManager.Instance.ChangeGameState(GameState.GameOver);
}; };*/
} }
public bool IsAlive { get { return isAlive; } } public bool IsAlive { get { return isAlive; } }
@ -35,7 +35,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities
if(monsterName == "Zombie") if(monsterName == "Zombie")
{ {
DeathRectangle deathRectangle = new DeathRectangle(Pos, "DeathFrom" + monsterName); DeathRectangle deathRectangle = new DeathRectangle(Pos, "DeathFrom" + monsterName);
GraphicsComponent.actionOfAnimationEnd(); //GraphicsComponent.actionOfAnimationEnd();
} }
isAlive = false; isAlive = false;
} }