// Token: 0x060003EB RID: 1003 RVA: 0x000194DC File Offset: 0x000178DC public void PushMailEvt(int _mailId, EvtId mailEvtId) { int num = SuperGameMaster.saveData.MailList.FindIndex((MailEventFormat mail) => mail.mailId.Equals(_mailId)); if (num == -1) { return; } switch (mailEvtId + 1) { case EvtId.Message: this.OpenMailEvt(_mailId); break; case EvtId.Picture: this.OpenMailEvt(_mailId); break; case EvtId.Gift: this.OpenMailEvt(_mailId); break; case EvtId.Management: case EvtId.Leaflet: if (!SuperGameMaster.saveData.MailList[num].opened) { this.GetItem(num); } SuperGameMaster.saveData.MailList.RemoveAt(num); this.DeleteMailButton(_mailId); break; case (EvtId)5: base.StartCoroutine(this.ShowInterStitial(_mailId, mailEvtId, num)); break; } }
// Token: 0x060003EC RID: 1004 RVA: 0x000195D0 File Offset: 0x000179D0 public IEnumerator ShowInterStitial(int _mailId, EvtId mailEvtId, int mailIndex) { if (!SuperGameMaster.admobMgr.ShowInterstitial_OK() && !SuperGameMaster.admobMgr.nowLoadInterstitial) { SuperGameMaster.admobMgr.RequestInterstitial(); Debug.Log("[admobManager] インタースティシャルを再読み込みします"); } base.GetComponentInParent <UIMaster>().freezeUI(true, new Color(0f, 0f, 0f, 0.3f)); float timer; for (timer = 0f; timer < 3f; timer += Time.deltaTime) { if (!SuperGameMaster.admobMgr.nowLoadInterstitial) { break; } yield return(null); } if (!SuperGameMaster.admobMgr.ShowInterstitial_OK()) { ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>(); confilm.OpenPanel("インターネットに接続できませんでした\n電波状況や端末オプションを\nご確認のうえ、再度お試しください"); confilm.ResetOnClick_Screen(); confilm.SetOnClick_Screen(delegate { confilm.ClosePanel(); }); } else { CharacterDataFormat characterDataFormat = SuperGameMaster.sDataBase.get_CharaDB_forId(SuperGameMaster.saveData.MailList[mailIndex].senderCharaId); ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>(); confilm.OpenPanel_YesNo(characterDataFormat.name + "が \n持ってきたチラシ(広告)を\n見ますか?"); confilm.ResetOnClick_Yes(); confilm.SetOnClick_Yes(delegate { confilm.ClosePanel(); }); confilm.SetOnClick_Yes(delegate { SuperGameMaster.saveData.MailList.RemoveAt(mailIndex); }); confilm.SetOnClick_Yes(delegate { SuperGameMaster.GetTicket(1); }); confilm.SetOnClick_Yes(delegate { confilm.OpenPanel(string.Empty); }); confilm.SetOnClick_Yes(delegate { confilm.AddContents(UnityEngine.Object.Instantiate <GameObject>(this.$this.AddConfirm_pref)); }); confilm.SetOnClick_Yes(delegate { confilm.ResetOnClick_Screen(); }); confilm.SetOnClick_Yes(delegate { confilm.SetOnClick_Screen(delegate { confilm.ClosePanel(); }); }); confilm.SetOnClick_Yes(delegate { confilm.SetOnClick_Screen(delegate { this.$this.DeleteMailButton(_mailId); }); }); confilm.SetOnClick_Yes(delegate { confilm.SetOnClick_Screen(delegate { SuperGameMaster.admobMgr.ShowInterstitial(); }); }); confilm.ResetOnClick_No(); confilm.SetOnClick_No(delegate { confilm.ClosePanel(); }); confilm.SetOnClick_No(delegate { SuperGameMaster.saveData.MailList.RemoveAt(mailIndex); }); confilm.SetOnClick_No(delegate { this.$this.DeleteMailButton(_mailId); }); } base.GetComponentInParent <UIMaster>().freezeUI(false, new Color(0f, 0f, 0f, 0f)); Debug.Log(string.Concat(new object[] { "[MailScrollView] 広告処理終了:", SuperGameMaster.admobMgr.nowLoadInterstitial, " / timer = ", timer })); yield break; }
// Token: 0x06000238 RID: 568 RVA: 0x00007642 File Offset: 0x00005A42 public void SetMailEvtId(EvtId setEvtId, bool opened) { this.mailEvtId = setEvtId; }