void OnStateChanged(ClientState previousState, ClientState state) { // Debug.Log(state); if (state == ClientState.ConnectedToMaster) { client.OpJoinLobby(null); } }