Merge remote-tracking branch 'origin/main'

This commit is contained in:
SpoodyTheOne 2024-02-04 02:49:38 +01:00
commit 6f510ebeaa
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()