[SoLVED] MultiplayerFPS – Scoreboard – foreach (Player player in players)

Updated on May 8, 2017 in [A] Multiplayer
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
1 on May 8, 2017

Hello, i’ve a problem with the foreach inside the scoreboard script; i have tested the OnEnable and its called but then the foreach is not working

void OnEnable()
{
Player[] players = GameManager.GetAllPlayers();
foreach (Player player in players)
{
Debug.Log (player.name + ” | ” + player.kills + ” | ” + player.deaths);
}

//Loop through and set up a list item for each one
//Setting the ui elements equal to the relevant data
}

Any ideas ?

  • Liked by
Reply
0 on May 8, 2017

Solved

  • Liked by
Reply
Cancel