i'm trying create an in-game scoreboard in a multiplayer game. I have a game manager object in the scene with an arrayMaker hash table.
As each player is instantiated into the game, they read their playerName from their player pref and send as both key and value (this'll change later to store other values).
So far, so good. I have a hash table with all the names. Trouble is, now I need to step through those keys and put those values into the scoreboard (In this case Ngui labels). I can find individual keys by their text string, but what I need is a way to get item 1 and set it, get item 2 and set it, etc.
Is there any way to do this without knowing the key strings? This probably isn't even the best way to do this, but I've looked around and haven't found any good examples of this for a networked game, so I'm trying to do it from scratch. any links to examples would also be greatly appreciated.
Thanks.