Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

What's the proper way to handle disconnections in UNET?

$
0
0
I'm making a two player card game using the matchmaker, and I can't figure out how to properly delete matches from the matchmaker, and how to handle a case like when the user creates a match and then changes their mind and backs out to the create match dialogue (implemented as a panel that I enable and disable).
Here's what I've tried so far:
Code (CSharp):
  1. public void DisconnectFromNetwork()
  2.     {
  3.         numUsers = 0;
  4.         if (isHost)
  5.         {
  6.             Debug.LogError("Destroying...
What's the proper way to handle disconnections in UNET?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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