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()
|
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