HI,guys. The one thing you should know is Unity3d will call OnPlayerDisconnected,OnPlayerConnected function at UnityEngine.Network.
This meaning rename your function will fix this problem. You can rename it like OnUserDisconnected.
Its can give you help.
That doesn’t look like a correct function call.
For a start, OnPlayerDisconnected returns void, and you’re instead summing its “result” to playerDisconnected.
Additionally, you’re making the call without the ‘playerID’ parameter.
Lastly, given the code, you probably just need to call
OnPlayerDisconnected(yourplayervariablehere);
rather than assign its results somewhere;
No, it was correct. Turns out some setting were wrong.
Don't you have to pass a string into the function?
– anon88771156Hi,guys. I'm using Prime31's Game Center plugin and have the same problem like you.I don't know what wrong with it.Did you fix it?
– QI1