예제 #1
0
 /// <summary> Gets the winner of the match. </summary>
 /// <remarks> Note this will return the player with the greatest number of remaining lives left. If there are more than
 /// player with the maximum number of stocks, no winner will be declared, and this method will return null. </remarks>
 /// <returns> the winning Player, null if it is a tie </returns>
 public override Player GetWinner()
 {
     if (_stocks.Count <= 0)
     {
         return(null);
     }
     return(PlayerManager.Instance.MatchPlayers.Get(_stocks.ArgMax()));
 }