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