public void DecreaseLife() { life -= lifeLost * Time.deltaTime; playerSounds.PLayOneShotBadInspiration(); if (life <= 0) { canvas_UI.gameObject.SetActive(false); canvas_Death.gameObject.SetActive(true); Destroy(gameObject); } }
public void DecreaseLife() { life -= lifeLost * Time.deltaTime; playerSounds.PLayOneShotBadInspiration(); if (life <= 0) { canvas_UI.gameObject.SetActive(false); canvas_Death.gameObject.SetActive(true); Destroy(gameObject); } }