void OnGuildSetting(C2G.GuildSetting packet, C2G.GuildAck ack) { switch (ack.result) { case pe_GuildResult.Success: GuildManager.Instance.SetGuildInfo(ack.guild_info); GameMain.Instance.UpdateMenu(); base.OnClose(); break; } }
public void OnClickModify() { if (CheckModify() == false) { base.OnClose(); return; } C2G.GuildSetting packet = new C2G.GuildSetting(); packet.guild_idx = GuildManager.Instance.GuildIdx; packet.guild_intro = m_InputGuildIntro.label.text; packet.guild_notify = m_InputGuildNotification.label.text; packet.guild_limit_level = m_JoinLevelLimit; packet.is_auto = m_ToggleAuto.value; Network.GameServer.JsonAsync <C2G.GuildSetting, C2G.GuildAck>(packet, OnGuildSetting); }