Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
6f510ebeaa
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue