少年修仙传客户端代码仓库
client_Wu Xijin
2018-09-30 5b5ac3bc919bcc511997d99f3551c1752713ad62
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
2个文件已修改
33 ■■■■■ 已修改文件
System/FairylandCeremony/FairylandCeremonyWin.cs 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/FriendSystem/MailAllModel.cs 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/FairylandCeremony/FairylandCeremonyWin.cs
@@ -15,6 +15,8 @@
        [SerializeField] Button rightBtn;
        [SerializeField] Button closeBtn;
        FairylandCeremonyModel ceremonyModel { get { return ModelCenter.Instance.GetModel<FairylandCeremonyModel>(); } }
        protected override void BindController()
        {
@@ -38,6 +40,17 @@
        protected override void OnActived()
        {
            base.OnActived();
            if(!WindowJumpMgr.Instance.IsJumpState && functionOrder == 0)
            {
                if(ceremonyModel.rechargeRedp.state == RedPointState.Simple)
                {
                    functionOrder = rechargeFunc.order;
                }
                else if(ceremonyModel.peopleRedp.state == RedPointState.Simple)
                {
                    functionOrder = peopleToHiFunc.order;
                }
            }
            funcBtnGroup.TriggerByOrder(functionOrder);
        }
System/FriendSystem/MailAllModel.cs
@@ -63,20 +63,28 @@
    }
    AwardExchangeModel exchangeModel { get { return ModelCenter.Instance.GetModel<AwardExchangeModel>(); } }
    bool isLogin = true;
    public MailAllModel()
    {
        DTC0102_tagCDBPlayer.beforePlayerDataInitializeEvent += BeforePlayerDataInit;
        DTC0403_tagPlayerLoginLoadOK.playerLoginOkEvent += OnPlayerLoginOk;
    }
    private void BeforePlayerDataInit()
    {
        isLogin = true;
        funcType = MailFuncType.Mail;
        mailModelDict.Clear();
        timeOrderMailInfo.Clear();
        mailTitleStr = "";
        mailContentstr = "";
        mailSendPersonStr = "";
    }
    private void OnPlayerLoginOk()
    {
        isLogin = false;
    }
    public MailFuncType funcType = MailFuncType.Mail;
@@ -171,6 +179,16 @@
                    {
                        exchangeModel.SetAwardExchangeModel(info.Items);
                    }
                    if(!isLogin)
                    {
                       if (info.Count > 0 || info.Gold > 0 || info.GoldPaper > 0
                          || info.Silver > 0)
                        {
                            SoundPlayer.Instance.PlayUIAudio(740);
                        }
                    }
                }
            }
            addMailCnt = mailModelDict.Count - preMailCnt;