protected override void DecodePackage(NetReader reader) { responsePack = new ResponseDefaultPacket() { Result = reader.getInt() }; }
protected override void DecodePackage(NetReader reader) { responsePack = new ResponseDefaultPacket() { Result = reader.getInt() }; Debug.Log(string.Format("玩家准备/取消准备结果:{0}", responsePack.Result)); }
private void onOperationCallBack(ActionResult actionResult) { ResponseDefaultPacket responsePack = actionResult.GetValue <ResponseDefaultPacket>(); if (!responsePack.Success) { UIDialogMgr.Instance.ShowDialog(responsePack.Result); } }
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); } }
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); } }
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); } }
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)); }
private void onClickCardCallBack(ActionResult actionResult) { ResponseDefaultPacket responsePack = actionResult.GetValue <ResponseDefaultPacket>(); }