colyseus / colyseus-unity-sdk

⚔ Colyseus Multiplayer SDK for Unity
https://docs.colyseus.io/getting-started/unity-sdk/
MIT License
371 stars 102 forks source link

0.14.5 Client: ColyseusManager.ConnectToServer is a protected method, contrary to documentation's instruction #147

Open tonygiang opened 3 years ago

tonygiang commented 3 years ago

The documentation for version 0.14.5 here instructs client developers to connect to server using this command:

ExampleManager.Instance.ConnectToServer();

The usage of the public Instance field implies this command is meant to to called outside of ColyseusManager. But since ColyseusManager.ConnectToServer is a protected method, this is impossible to do. Please either amend the documentation or treat this as a bug.