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