| | |
| | | {
|
| | | m_RedpackGetSfx.StopImediatly();
|
| | | }
|
| | | if (OSEnvelopeModel.CanGetEnvelope())
|
| | | var requireRedpack = (OSEnvelopeModel.CanGetEnvelope()
|
| | | || redPacket.IsRedBagGetBool) && PlayerDatas.Instance.baseData.ExAttr5 != 1;
|
| | | if (requireRedpack)
|
| | | {
|
| | | m_RedBag.gameObject.SetActive(true);
|
| | | if (!m_RedpackGetSfx.IsPlaying)
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | if (redPacket.IsRedBagGetBool)
|
| | | {
|
| | | m_RedBag.gameObject.SetActive(true);
|
| | | if (!m_RedpackGetSfx.IsPlaying)
|
| | | {
|
| | | m_RedpackGetSfx.Play();
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | m_RedBag.gameObject.SetActive(false);
|
| | | }
|
| | | m_RedBag.gameObject.SetActive(false);
|
| | | }
|
| | | CheckSendRedpackBtn();
|
| | | }
|
| | |
| | | {
|
| | | StartCoroutine(featureNoticeModel.WhetherToPlayTheBox());//功能预告
|
| | | }
|
| | | if (_tCDBPlayerRefresh == PlayerDataRefresh.ExAttr5)//判断是否再跨服
|
| | | {
|
| | | IsCrossServerOneVsOne();
|
| | | }
|
| | | }
|
| | |
|
| | | void OnArriveCollectNPC(uint sid, int npcID)
|
| | |
| | | m_FunctionForecastTip.gameObject.SetActive(true);
|
| | | m_TaskSwithButton.gameObject.SetActive(true);
|
| | | m_InGamePusher.gameObject.SetActive(true);
|
| | | if (WindowCenter.Instance.IsOpen<FightingPKWin>())
|
| | | {
|
| | | WindowCenter.Instance.CloseImmediately<FightingPKWin>();
|
| | | }
|
| | | OnRedBagGet();
|
| | | }
|
| | |
|