From 62e8769965638a17406227614400a8732c65e01b Mon Sep 17 00:00:00 2001 From: kimrdd Date: Sun, 4 Feb 2024 02:48:52 +0100 Subject: [PATCH] error fix --- Assets/Scripts/Enemy/EnemyAnimationHandler.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Scripts/Enemy/EnemyAnimationHandler.cs b/Assets/Scripts/Enemy/EnemyAnimationHandler.cs index a510a5f..e5882d7 100644 --- a/Assets/Scripts/Enemy/EnemyAnimationHandler.cs +++ b/Assets/Scripts/Enemy/EnemyAnimationHandler.cs @@ -17,10 +17,10 @@ public class EnemyAnimationHandler : MonoBehaviour } void EnemyDie() { - GetComponent().enabled = false; - GetComponent().enabled = false; - - StartCoroutine(AnimationDie()); + //GetComponent().enabled = false; + //GetComponent().enabled = false; + if (!isDying) + StartCoroutine(AnimationDie()); } IEnumerator AnimationDie()