- Home /
Unity with sockets c#
I am about to make a multiplayer game. I stucked with one question I have to decide between two things:
1, Use a dynamic client class for the client side connection to the server in Unity.
2, Use a static networkmanager class for the connection.
If i use a static i can use it in every object, but if i use dynamic one i have to make a global networkhelper object and use that. Please help me, which one would be the better?
Thanks ~ MrAkroMenToS
Better, 1...2...both, with the static var/class/manager/singleton you're being lazy, there isn't any reason, other than lazyness, to consider the static structure better then something you instantiate and pass a reference around that isn't static.
I have an idea then! I'll make a static networkmanagar class. And i'll add an event "rec$$anonymous$$sg" to handle the datas. Thanks for the help! You should write it as an answer and i'll tick it as good answer.
Your answer
![](https://koobas.hobune.stream/wayback/20220613153707im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unhandled Exception: Mono.Linker.ResolutionException: Can not resolve reference 0 Answers
Data keeps "hanging". TCP client/server 2 Answers
C# Networking help? 1 Answer
Chat system is not working 1 Answer
Multiple Cars not working 1 Answer