IEnumerator Initialize() { while (!CommunicationUtility.Instance.IsConnectedToServer) { yield return(null); } JoinLobbyRequestParameter request = new JoinLobbyRequestParameter(); request.PlayerId = PlayerInformation.Instance.PlayerID; CommunicationUtility.Instance.JoinLobby(request, this, "ReceivedJoinResponse"); }
public void JoinLobby(JoinLobbyRequestParameter parameter, Component receiver, string methodName) { this.CommunicateWithServer(receiver, methodName, true, parameter.GetHashtableFromParameter(), ClientCommandConsts.JOIN_LOBBY_REQUEST, ServerCommandConsts.JOIN_LOBBY_RESPONSE); }