i have problem with PlayerIO. When i connect to server, then i not see other players
- Code: Select all
PlayerIOClient.PlayerIO.Connect(
"world-of-zukaro-2ucj4k7phewsufpcsff6ow",
"public",
userid,
null,
null,
delegate(Client client) {
Debug.Log("Successfully connected to Player.IO");
//Create or join the room
client.Multiplayer.CreateJoinRoom(
"Red Room",
"UnityMushrooms",
true,
null,
null,
delegate(Connection connection) {
Debug.Log("Joined Room.");
infomsg = "Joined Room.";
pioconnection = connection;
pioconnection.OnMessage += handlemessage;
joinedroom = true;
GameObject newplayer = GameObject.Instantiate(PlayerPrefab) as GameObject;
},
delegate(PlayerIOError error)
{
Debug.Log("Error Joining Room: " + error.ToString());
infomsg = error.ToString();
}
);
},
delegate(PlayerIOError error) {
Debug.Log("Error connecting: " + error.ToString());
infomsg = error.ToString();
}
);