So I'm developing a game with Unity, and on my PC everything works fine. But the Mac Web Player stops right at the part where it is supposed to create/join the first room. It doesn't show any errors either.
Any ideas?
Cheers,
Marco
- Code: Select all
void Start () {
PlayerIOClient.PlayerIO.UnityInit(this);
// create a random userid
System.Random random = new System.Random();
string userid = "Guest" + random.Next(0, 10000);
text.text=("Starting");
PlayerIOClient.PlayerIO.Connect(
[myid],
"public",
userid,
null,
null,
delegate(Client client) {
text.text = ("Connected");
// Uncoment the line below to use the Development Server
//client.Multiplayer.DevServer = new ServerEndpoint("localhost",8184);
//Create or join the room
client.Multiplayer.CreateJoinRoom ("FirstRoom","Game",false,null,null,delegate(Connection value) {
text.text = ("Created");
c = value;
c.OnMessage+=handlemessage;
c.Send ("CreateJoinBattleSector","map1");
}, delegate(PlayerIOError value) {
text.text = value.Message;
});
});
}