コード例 #1
0
 private void OnQuery_JOIN()
 {
     GameSection.SetEventData($"Welcome to {_info.clanName}!");
     GameSection.StayEvent();
     MonoBehaviourSingleton <GuildManager> .I.SendRequestJoin(_clanId, -1, delegate(bool isSuccess, Error error)
     {
         GuildInfoDialog guildInfoDialog = this;
         DoWaitProtocolBusyFinish(delegate
         {
             if (!GuildManager.IsValidInGuild())
             {
                 GameSection.ChangeStayEvent("REQUEST", null);
             }
             GameSection.ResumeEvent(isSuccess, null);
         });
     });
 }
コード例 #2
0
 private void OnQuery_REQUEST()
 {
     GameSection.StayEvent();
     MonoBehaviourSingleton <GuildManager> .I.SendRequestJoin(_clanId, -1, delegate(bool isSuccess, Error error)
     {
         GuildInfoDialog guildInfoDialog = this;
         DoWaitProtocolBusyFinish(delegate
         {
             if (isSuccess)
             {
                 guildInfoDialog.SetButtonEnabled((Enum)UI.BTN_REQUEST, false, true);
             }
             if (GuildManager.IsValidInGuild())
             {
                 GameSection.ChangeStayEvent("JOIN", null);
             }
             GameSection.ResumeEvent(true, null);
         });
     });
 }