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