error fix
This commit is contained in:
parent
b1e67478f6
commit
62e8769965
|
@ -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