From 092ebe686c6ba79b961afa32bb276e26cc916001 Mon Sep 17 00:00:00 2001 From: John Ludlow Date: Fri, 11 Oct 2024 16:04:58 +0100 Subject: [PATCH] #16 Udemy 2.5D RPG Handle player attacks --- Udemy25dRpg/Scenes/Characters/Enemy/EnemyAttackState.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Udemy25dRpg/Scenes/Characters/Enemy/EnemyAttackState.cs b/Udemy25dRpg/Scenes/Characters/Enemy/EnemyAttackState.cs index 5f07a28..7947817 100644 --- a/Udemy25dRpg/Scenes/Characters/Enemy/EnemyAttackState.cs +++ b/Udemy25dRpg/Scenes/Characters/Enemy/EnemyAttackState.cs @@ -54,7 +54,9 @@ private void HandleAnimationFinished() .OfType() .Any()) { - EnterState(); + PerformHit(); + + CharacterNode.AnimatedSprite3DNode.Play(nameof(Enemy.EnemyAnimations.Attack)); } else {