//This is called AFTER a connection has been approved private static void OnPlayerConnected(Player player) { //TODO: you could save where the player was last when they dc'd //then in here, move them to that room again. (if you have an mmo or something) //or move them to a lobby room //or a character select Debug.Log("player {0} connected", player.Id); player.ChangeRoom(_room.Room); }
//This is called AFTER a connection has been approved private static void OnPlayerConnected(Player player) { //TODO: move the player to a room maybe? Debug.Log("player {0} connected", player.Id); player.ChangeRoom(_room.Room); }
private void OnPlayerConnected(Player player) { player.ChangeRoom(_testRoom); }