public void MinusHealth(float dHealth) { health -= dHealth; if (health <= 0) { LFEventManager.PlayDidDie(); gameObject.SetActive(false); } }
private IEnumerator EndHit(GameObject blood) { yield return(new WaitForSeconds(2.0f)); if (blood != null) { Destroy(blood); } if (health <= 0) { LFEventManager.PlayDidDie(); gameObject.SetActive(false); } }
public void ExitAction() { LFEventManager.PlayDidExit(); CancelAction(); }
private IEnumerator GameOver() { yield return(new WaitForSeconds(1.0f)); LFEventManager.PlayDidDie(); }
void OnDestroy() { LFEventManager.RemoveAll(); }