Example #1
0
    private void SendSwitchRequest()
    {
        string uid = Bonjour.GetPlayerID().ToString();
        SwitchAccountRequestParameter request = new SwitchAccountRequestParameter();

        request.AccountID = uid;
        CommunicationUtility.Instance.SwitchAccount(request, this, "OnSwitchResponse", true);
    }
 public void SwitchAccount(SwitchAccountRequestParameter parameter, Component receiver, string methodName, bool isListenOnce)
 {
     this.CommunicateWithServer(receiver, methodName, isListenOnce, parameter.GetHashtableFromParameter(),
                                ClientCommandConsts.SWITCH_ACCOUNT_COMMAND, ServerCommandConsts.SWITCH_ACCOUNT_RESPONSE);
 }