/// <summary> /// 典当回调 /// </summary> /// <param name="callBackParam">返回剩余礼物和当前金币 </param> public override void pawnshop2CallBack(PawnshopDto callBackParam) { UIPlayerGiftPanel uIPlayerGiftPanel = MessageManager.GetInstance.GetUIDict <UIPlayerGiftPanel>(); if (uIPlayerGiftPanel != null) { if (uIPlayerGiftPanel.gameObject.activeSelf) { //更新剩余礼物的数量 uIPlayerGiftPanel.UpdateUI(callBackParam.productId, callBackParam.productHoldCount); } } }
private void BtnCloseOnClick() { UIPlayerGiftPanel uIPlayerGiftPanel = MessageManager.GetInstance.GetUIDict <UIPlayerGiftPanel>(); if (uIPlayerGiftPanel != null) { if (uIPlayerGiftPanel.gameObject.activeSelf) { uIPlayerGiftPanel.UpdateUIData(); } } UIManager.Instance.Close("Prefabs/Pawn/PawnPanel"); }