protected void OnMatchOver(DetectedThrow thrw) { ConvertAndSaveThrow(thrw, ThrowResult.MatchWon); Game.Winner = Game.PlayerOnThrow; OnMatchEnd?.Invoke(); }
public void End() { if (!HasStarted) { return; } Destroy(player); Destroy(goal); Destroy(floor); HasStarted = false; onMatchEnd?.Invoke(secondsElapsed); }
protected void InvokeEndMatch() { OnMatchEnd?.Invoke(Game, PlayerOnThrow); }