示例#1
0
    protected override void OnUpcomingMatchesDownloaded(UpcomingMatches upcomingMatches)
    {
        Match[] matches = upcomingMatches.matches;

        nextLeftPlayers.text = "";
        nextRightPlayers.text = "";

        for (int i = 0; i < 3 && i < matches.Length; i++) {
            Match match = matches [i];
            string botNameLeft = match.bots [0];
            string botNameRight = match.bots [1];

            if (i > 0) {
                nextLeftPlayers.text += "\n";
                nextRightPlayers.text += "\n";
            }
            nextLeftPlayers.text += botNameLeft;
            nextRightPlayers.text += botNameRight;
        }
    }
示例#2
0
 protected virtual void OnUpcomingMatchesDownloaded(UpcomingMatches upcomingMatches)
 {
 }