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