Beispiel #1
0
 private void SaveInvitation(string id, string title, string content, string summerId, InvitateType type = InvitateType.KHOrZDY)
 {
     if (this.saveData != string.Empty)
     {
         this.saveData = string.Concat(new object[]
         {
             this.saveData,
             "|",
             id,
             "&",
             title,
             "&",
             content,
             "&",
             summerId,
             "&",
             (int)type
         });
     }
     else
     {
         this.saveData = string.Concat(new object[]
         {
             id,
             "&",
             title,
             "&",
             content,
             "&",
             summerId,
             "&",
             (int)type
         });
     }
 }
Beispiel #2
0
 private IEnumerator AddOneNotice(string id, string title, string content, string summerId, InvitateType type = InvitateType.KHOrZDY)
 {
     InvitationView.< AddOneNotice > c__Iterator13A <AddOneNotice> c__Iterator13A = new InvitationView.< AddOneNotice > c__Iterator13A();
Beispiel #3
0
 public void AddInvitation(string id, string title, string content, string summerId, InvitateType type = InvitateType.KHOrZDY)
 {
     if (SceneManager.Instance.CurSceneType == SceneType.Home && !Singleton <PvpRoomView> .Instance.IsOpen && !Singleton <PvpSelectHeroView> .Instance.IsOpen)
     {
         if (!Singleton <InvitationView> .Instance.IsOpen)
         {
             CtrlManager.OpenWindow(WindowID.InvitationView, null);
         }
         this.coroutineManager.StartCoroutine(this.AddOneNotice(id, title, content, summerId, type), true);
     }
     else
     {
         this.SaveInvitation(id, title, content, summerId, type);
     }
 }