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?


Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.