public void ReportDeath() { remainingLives -= 1; if (remainingLives > 0) { if (OnPlayerDeath != null) { OnPlayerDeath.Invoke(); } } else { TopUpLives(); if (OnPlayerLost != null) { OnPlayerLost.Invoke(); } } }
public void PlayerLost(object sender, PlayerEventArgs args) { OnPlayerLost?.Invoke(sender, args); }