| | |
| | | }
|
| | |
|
| | | 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;
|
| | |
| | | {
|
| | | 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;
|