I've been getting to grips with uNet, using the Lobby Example as a base. The one thing I can't work out or find suitable information on is on how to disconnect Clients correctly.
The game itself is a 1 vs 1, so one person hosts and the other player is a Client. I've added a "disconnect" button and using this code when the button is pressed:
This works as intended for the Host and returns them to the Offline Scene. I can't...
How to Disconnect Clients properly?
The game itself is a 1 vs 1, so one person hosts and the other player is a Client. I've added a "disconnect" button and using this code when the button is pressed:
Code (CSharp):
How to Disconnect Clients properly?