fix err
This commit is contained in:
parent
b6be35168e
commit
dbef2ea752
|
@ -6,6 +6,7 @@ using UnityEngine.AI;
|
|||
public class EnemyAnimationHandler : MonoBehaviour
|
||||
{
|
||||
Animator animator;
|
||||
bool isDying = false;
|
||||
void Start()
|
||||
{
|
||||
animator = GetComponent<Animator>();
|
||||
|
@ -20,6 +21,7 @@ public class EnemyAnimationHandler : MonoBehaviour
|
|||
//GetComponent<NavMeshAgent>().enabled = false;
|
||||
if (!isDying)
|
||||
StartCoroutine(AnimationDie());
|
||||
isDying = true;
|
||||
}
|
||||
|
||||
IEnumerator AnimationDie()
|
||||
|
|
Loading…
Reference in New Issue