This commit is contained in:
OliverS 2024-02-04 02:52:13 +01:00
commit b1f6b2fc04
1 changed files with 4 additions and 4 deletions

View File

@ -17,10 +17,10 @@ public class EnemyAnimationHandler : MonoBehaviour
}
void EnemyDie()
{
GetComponent<Collider2D>().enabled = false;
GetComponent<NavMeshAgent>().enabled = false;
StartCoroutine(AnimationDie());
//GetComponent<Collider2D>().enabled = false;
//GetComponent<NavMeshAgent>().enabled = false;
if (!isDying)
StartCoroutine(AnimationDie());
}
IEnumerator AnimationDie()