/// <summary> /// 隐藏加载中 /// </summary> public static void HideLoading() { UIMgr.GetInstance().loading = false; UIMgr.GetInstance().timeOutTime = 0.0f; UIMgr.GetInstance().loadingTimeOutTimer = 0.0f; UIMgr.GetInstance().ClosePanel(UIConstant.UIID_GENERAL_LOADING); }
/// <summary> /// 更新面板 /// </summary> /// <param name="msg"></param> public void GetAwardShow(NetMsg.ClientSrp17Info msg) { if (temp != null) { StopCoroutine(temp); } //抢光了,显示红包详细信息 if (msg == null) { UpdateRobStatus(2); } //抢到红包,播放红包领取动画 else { UpdateRobStatus(0); UIMgr.GetInstance().ShowRedPagePanel.OnSetValueAndNotOpenPanel(16, 1, 2, null, RedPageShowPanel.NowState.Game); int RpType = 0; switch (msg.byAssetType) { case 1: { RpType = 3; } break; case 2: { RpType = 4; } break; case 3: { RpType = 1; } break; case 4: { RpType = 2; } break; case 5: { RpType = 5; } break; case 6: { RpType = 0; } break; } Debug.LogError("RpType:" + RpType); UIMgr.GetInstance().ShowRedPagePanel.DirectOpenRedPagePanel(msg.iAssetNum.ToString(), RpType, "麻将馆福利,抢到就是赚到!"); gameObject.SetActive(false); } }