public void DecreaseLife() { lifes--; onLifesChange(lifes); if (lifes <= 0) { //onLifeDepleted(); onGameLost.TriggerEvent(); Debug.Log("Lost The Game"); } }
public void DecreaseLife() { lifes--; onLifesChange(lifes); if (lifes <= 0) { //onLifeDepleted(); onGameLost.TriggerEvent(); Debug.Log("Lost The Game"); } }