Quantcast
Viewing all articles
Browse latest Browse all 16796

How to Disconnect Clients properly?

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:
Code (CSharp):
  1. NetworkManager.singleton.client.Disconnect();
This works as intended for the Host and returns them to the Offline Scene. I can't...

How to Disconnect Clients properly?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>