How to distinguish the server and the client

by Minebot   Last Updated August 10, 2018 09:13 AM

As I understand it, when a player in UNET hosts, he has 2 threads. One of them is a server, and the other is a client. But the problem is that in all two threads the variables isServer and isClient are true. How do I know which thread is currently executing some code?

Tags : unity unet

Related Questions

How to control at network ball with client

Updated December 27, 2017 13:13 PM

Can Inspector interactions be used with UNET

Updated February 07, 2019 16:13 PM