Exemple #1
0
        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);
 }
Exemple #3
0
 protected void InvokeEndMatch()
 {
     OnMatchEnd?.Invoke(Game, PlayerOnThrow);
 }