Skip to content

Commit

Permalink
#16 Udemy 2.5D RPG Handle player attacks
Browse files Browse the repository at this point in the history
  • Loading branch information
John Ludlow committed Oct 11, 2024
1 parent 8c7dfcc commit 092ebe6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Udemy25dRpg/Scenes/Characters/Enemy/EnemyAttackState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ private void HandleAnimationFinished()
.OfType<Player.Player>()
.Any())
{
EnterState();
PerformHit();

CharacterNode.AnimatedSprite3DNode.Play(nameof(Enemy.EnemyAnimations.Attack));
}
else
{
Expand Down

0 comments on commit 092ebe6

Please sign in to comment.