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

NetworkClient.RegisterHandler not working

$
0
0
I'm trying to handle the networking errors, but RegisterHandler apparently is just being ignored.
I.e. I call it, and it is exactly as if I didn't: I still get the default error handling.

This is my OnStartClient:
Code (csharp):
  1.  
  2.         public override void OnStartClient (NetworkClient client)
  3.         {
  4.             Debug.Log("Starting client: "+client);
  5.  
  6.             client.RegisterHandler(MsgType.Error, (NetworkMessage msg)=>{
  7.                 Debug.Log("Client error: "+msg);
  8.             });...
NetworkClient.RegisterHandler not working

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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