Example #1
0
 // 生命值减少
 public void MinusLife()
 {
     currentLife--;
     UpdateLife();
     if (currentLife == 0)
     {
         m_Shot.StopAllCoroutines();
         UIStateController.Instance.GameOverState();
     }
 }
Example #2
0
 public override void MinusLife()
 {
     life--;
     if (life <= 0)
     {
         m_Shot.StopAllCoroutines();
         StopAllCoroutines();
         gameObject.SetActive(false);
         GameObject.Destroy(gameObject, 3.0f);
     }
 }