Beispiel #1
0
    public static Player.PlayerID TryDetermineScoringPlayer(System.Func <int> onScore)
    {
        Player.PlayerID scorer = (Player.PlayerID)onScore.InvokeSafe();

        if (scorer != 0)
        {
            return(scorer);
        }

        return(0);
    }