Hello everyone. I am working on a networked game and wanted to improve my current score board system. Basically, since all my players are listed in classes, I wanted to do the follow:
foreach(Player pl in NetworkManager.Instance.PlayerList)
{
if(pl.Score < "other pl".Score)
{
pl.row = "other pl".row ++;
Debug.Log("Switched score around");
}
}
Is it possible to compare different “pl” with each other? Or do I need to call back on some other solution. Thank you in advance!