- Home /
Question by
siddharth3322 · Oct 23, 2018 at 05:50 PM ·
networkingmultiplayermultiplayer-networkingmultiplayer networking
Remove Player and Close Connection in Multiplayer Game
I have developed 2 players multiplayer game. In the game, the first player joins the game and become a host and he waited for other player but nobody comes to join him so at last, he decided to close the game.
So he presses the close button so in this case, I want to safely remove gameplay and game network manager as well because he was the host of the created match so it requires to remove completely so that nobody comes and become the client of the same match. Because the same thing happening to me. The same person tries to connect with the match and it gets connected with already created one in past.
So what is a safe way to remove the player object from network and close network connection too?
Comment