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

matchMater.ListMatches returns null after the second player joins

$
0
0
So, I've trying to solve this the while day:

I run this code in my scene:

Code (CSharp):
  1. public void VersusMatchMaking()
  2. {
  3.     _netManager.StartMatchMaker();
  4.     _netManager.matchMaker.SetProgramAppID((AppID)XXXXX);
  5.     _netManager.matchMaker.ListMatches(0, 20, "", _netManager.VersusMatchJoinOrCreate);
  6. }
In my network manager the functions are as follows:

Code (CSharp):
  1. public void VersusMatchJoinOrCreate(ListMatchResponse response)
  2. {
  3.     if (response.matches.Any(m => m.currentSize <...
matchMater.ListMatches returns null after the second player joins

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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