really simple question really
how do i get this loop to show all players because its only showing my player. as you can see i tried starting a new line.
when i do the samestatment except playerlist i use otherlist it returns another player so why isnt the player list showing everyone :S
void openCloseScore()
{
if (Input.GetKey (KeyCode.Tab))
{
ScoreBoard.SetActive (true);
foreach(PhotonPlayer player in PhotonNetwork.playerList)
{
ScoreboardTxt.text = "\r\nPlayerName: " + player.ToString();
}
}
else
{
ScoreBoard.SetActive(false);
}
}