NetManager is a MonoSingleton. It contains a Client and manages connection and requests with it.
Version is the
Application.version. It is send to the server at connection. The first connected client defines the server version with it. After, all other clients must have the same version.
Connection to a server
First, instantiate a GameObject with a
NetManager component (or create it in a scene).
Auto connect is checked, it login on start. (used in development)
bool success = await NetManager.Connect(address, port, password, version);
version is null or empty,
Application.version is used.
Client is disconnected when NetManager is destroyed or if you call the