- Code: Select all
public override void UserLeft(Player player)
{
Broadcast("UserLeft", player.Id);
}
But, when another user joins, the server side code still sends them the info for that player
- Code: Select all
Message gamestate = Message.Create("GameState");
foreach (Player guy in Players)
{
gamestate.Add(DELETED INFO HERE);
}
Broadcast(gamestate);//tell the player the current game state
How do i remove them from the Players array?
Thanks for your help