Exemple #1
0
    public static void ShowGuild(bool show)
    {
        instance.isGuildVisible = show;
        if (show)
        {
            if (Game.GetPlayer().GetGuildInfo().id == -1)
            {
                instance.inactiveGuildHolder.gameObject.SetActive(true);
                instance.ShowWaitPanel();
                NetworkMessageResolve.NetworkGuildRequestGuildList();
            }
            else
            {
                instance.activeGuildHolder.gameObject.SetActive(true);
                instance.ShowWaitPanel();
                NetworkMessageResolve.NetworkGuildRequest(Game.GetPlayer().GetGuildInfo().id);
            }
        }
        else
        {
            instance.inactiveGuildHolder.gameObject.SetActive(false);
            instance.activeGuildHolder.gameObject.SetActive(false);

            instance.HideAnnouncement();
            instance.HideInfoPanel();
            instance.HideRankManager();
            instance.HideMemberManager();
            instance.HideInviteMember();
        }
    }