Merge branch 'main' of https://gitea.deprived.dev/Sveskejuice/fgm24
This commit is contained in:
commit
b1f6b2fc04
|
@ -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