if (GUI.Button(rect, sceneName, button))
{
// When a button is clicked, join the specified channel.
// Whoever creates the channel also sets the scene that will be loaded by everyone who joins.
// In this case, we are specifying the name of the scene we've just clicked on.
TNManager.playerName = "Fred";
TNManager.JoinChannel(i + 1, sceneName);
}