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

NetworkServer.SendToAll, host gets the message twice

$
0
0
Hi,

I upgraded from 5.2.2 to 5.3.1 and now the SendToAll calls from my host(host + client) results in two calls being made to the to the host for each call. I have not touched the code after upgrade and it worked perfectly before upgrading. Normal clients which are not hosts gets the message only once.

Code (csharp):
  1.  
  2. // Example 1:
  3. NetworkServer.SendToAll(Constants.ACTION_RESPONSE_MESSAGE, new ActionResponseMessage() { player = gameObject, action = action, message = message, success = success,...
NetworkServer.SendToAll, host gets the message twice

Viewing all articles
Browse latest Browse all 16796


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