Exemple #1
0
 private void RemoveHealth(int value)
 {
     health -= value;
     UpdateHpUI?.Invoke(health);
     if (health > 0)
     {
         return;
     }
     GameOver?.Invoke();
 }
Exemple #2
0
 private void Start()
 {
     UpdateHpUI?.Invoke(health);
 }