error fix

This commit is contained in:
kimrdd 2024-02-04 02:48:52 +01:00
parent b1e67478f6
commit 62e8769965
1 changed files with 4 additions and 4 deletions

View File

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