im working on a project with multiple worlds on a server and i use TCPClient to connect to the server. i made the server myself and its not anything like SmartFox or Photon or something.
basically im using "static" (public static TCPClient client;) to keep the connection when i load a new level (async), but i noticed that the connection gets really unstable. sometimes i receive data, and sometimes i dont. maybe i can use Awake() and DontDestroyOnLoad to keep the connection but before i start re-scripting everything in a way that i dont know if it will work, i want to know if this does or does not keep the connection and where the bug might be.
thanks!
↧