Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
6f510ebeaa
|
@ -17,10 +17,10 @@ public class EnemyAnimationHandler : MonoBehaviour
|
||||||
}
|
}
|
||||||
void EnemyDie()
|
void EnemyDie()
|
||||||
{
|
{
|
||||||
GetComponent<Collider2D>().enabled = false;
|
//GetComponent<Collider2D>().enabled = false;
|
||||||
GetComponent<NavMeshAgent>().enabled = false;
|
//GetComponent<NavMeshAgent>().enabled = false;
|
||||||
|
if (!isDying)
|
||||||
StartCoroutine(AnimationDie());
|
StartCoroutine(AnimationDie());
|
||||||
}
|
}
|
||||||
|
|
||||||
IEnumerator AnimationDie()
|
IEnumerator AnimationDie()
|
||||||
|
|
Loading…
Reference in New Issue