How to destroy playerObject when this player is disconnected ?
Options
Hello
I'm new using PUN (last version)
I wrote a very simple NetworkController. My game is ok : player can connect and play together.
But when a player quit the game, his playerObject is still in scene.
Can someone tell me how to destroy it and where to put the code in my networkController ?
Thanks a lot.
I'm new using PUN (last version)
I wrote a very simple NetworkController. My game is ok : player can connect and play together.
But when a player quit the game, his playerObject is still in scene.
Can someone tell me how to destroy it and where to put the code in my networkController ?
Thanks a lot.
0
Comments
-
Player's objects should be destroyed automatically by default when player leaves the room. But there are issues with this in PUN 1.61.1
In case you use this version, please take a look at workaround: http://forum.photonengine.com/discussion/comment/25178/#Comment_251780 -
Thank you !
My problem is now solved0