Example #1
0
 public void Die()//死亡
 {
     thisLnx.lifeValue = 0;
     thisLnx.GetComponent <Animator>().Play("Death");
     //onEnmyLf.Hide_FadeOut();//血条逐渐消失
     //Destroy(onEnmyLf.gameObject, 1f);
     if (lifeBar != null)
     {
         lifeBar.DestroyBar(2);             //销毁血条
     }
 }