示例#1
0
 public void Die()
 {
     lp = 0;
     GetComponent <Animator>().SetBool("Death", true);
     if (aiMovement != null)
     {
         aiMovement.KillMovement();
     }
     if (_aiDied != null)
     {
         _aiDied.Invoke(transform);
     }
     if (despawns)
     {
         StartCoroutine(Despawn());
     }
 }