What would this look like in UnityScript?
void playerDataLoaded( List< GameCenterPlayer > players )
{
foreach( GameCenterPlayer p in players )
// do something with p
}
Players is a list not an array.
I'm trying to handle an event response from Apple GameCenter that returns a list of plater attributes. These are the errors:
"length is not a member of object player"
"Type 'Object' (player) does not support slicing"
Uses iOS Game Center, Unity, and prime31 GameCenter plugin.