예제 #1
0
 protected override void DecodePackage(NetReader reader)
 {
     responsePack = new ResponseDefaultPacket()
     {
         Result = reader.getInt()
     };
 }
예제 #2
0
    protected override void DecodePackage(NetReader reader)
    {
        responsePack = new ResponseDefaultPacket()
        {
            Result = reader.getInt()
        };

        Debug.Log(string.Format("玩家准备/取消准备结果:{0}", responsePack.Result));
    }
예제 #3
0
    private void onOperationCallBack(ActionResult actionResult)
    {
        ResponseDefaultPacket responsePack = actionResult.GetValue <ResponseDefaultPacket>();

        if (!responsePack.Success)
        {
            UIDialogMgr.Instance.ShowDialog(responsePack.Result);
        }
    }
예제 #4
0
    private void onCallback(ActionResult actionResult)
    {
        ResponseDefaultPacket responsePack = actionResult.GetValue <ResponseDefaultPacket>();

        if (responsePack.Success)
        {
            UIDialogMgr.Instance.ShowDialog(10012, delegate(GameObject go) { UIWindowMgr.Instance.PopPanel(); });
        }
        else
        {
            UIDialogMgr.Instance.ShowDialog(responsePack.Result);
        }
    }
예제 #5
0
    private void OnReadyCallBack(ActionResult mActionResult)
    {
        ResponseDefaultPacket responsePack = mActionResult.GetValue <ResponseDefaultPacket>();

        if (responsePack != null && responsePack.Success)
        {
            UIModelMgr.Instance.GetModel <UIMainModel>().PlayerInfo.IsReady = true;
            mUserInfo.IsReady = true;
            SetReadyState();
        }
        else
        {
            UIDialogMgr.Instance.ShowDialog(responsePack.Result);
        }
    }
예제 #6
0
 protected override void DecodePackage(NetReader reader)
 {
     responsePack = new ResponseDefaultPacket()
     {
         Result = reader.getInt()
     };
     if (responsePack.Result == MyActionResult.Success || responsePack.Result == MyActionResult.AlreadyInRoom)
     {
         GameMgr.Instance.EnterToGameWindow();
     }
     else
     {
         UIDialogMgr.Instance.ShowDialog(responsePack.Result);
     }
 }
예제 #7
0
 protected override void DecodePackage(NetReader reader)
 {
     responsePack = new ResponseDefaultPacket()
     {
         Result = reader.getInt()
     };
     if (responsePack.Result == MyActionResult.Success || responsePack.Result == MyActionResult.NotInRoom)
     {
         GameLogicMgr.Instance.LeaveRoom();
     }
     else
     {
         UIDialogMgr.Instance.ShowDialog(responsePack.Result);
     }
     Debug.Log(string.Format("离开房间结果:{0}", responsePack.Result));
 }
예제 #8
0
 private void onClickCardCallBack(ActionResult actionResult)
 {
     ResponseDefaultPacket responsePack = actionResult.GetValue <ResponseDefaultPacket>();
 }