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