Пример #1
0
    IEnumerator Initialize()
    {
        while (!CommunicationUtility.Instance.IsConnectedToServer)
        {
            yield return(null);
        }
        JoinLobbyRequestParameter request = new JoinLobbyRequestParameter();

        request.PlayerId = PlayerInformation.Instance.PlayerID;
        CommunicationUtility.Instance.JoinLobby(request, this, "ReceivedJoinResponse");
    }
Пример #2
0
 public void JoinLobby(JoinLobbyRequestParameter parameter, Component receiver, string methodName)
 {
     this.CommunicateWithServer(receiver, methodName, true, parameter.GetHashtableFromParameter(),
                                ClientCommandConsts.JOIN_LOBBY_REQUEST, ServerCommandConsts.JOIN_LOBBY_RESPONSE);
 }