Exemplo n.º 1
0
    void OnDisable()
    {
        m_Instance = null;

        m_GuildNameInput.value = "";
        Utils.CleanGrid(m_GuildListGrid);
    }
        public uint Execute(PacketDistributed ipacket)
        {
            GC_GUILD_RESERVE_LIST packet = (GC_GUILD_RESERVE_LIST)ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            GameManager.gameManager.PlayerDataPool.GuildInfo.PreserveGuildGuid.Clear();
            for (int i = 0; i < packet.ReserveGuildGuidCount; i++)
            {
                if (packet.ReserveGuildGuidList[i] != GlobeVar.INVALID_GUID)
                {
                    GameManager.gameManager.PlayerDataPool.GuildInfo.PreserveGuildGuid.Add(packet.ReserveGuildGuidList[i]);
                }
            }

            if (GuildWindow.Instance() != null)
            {
                GuildWindow.Instance().UpdateGuildListCurPage();
            }

            if (GuildSearchLogic.Instance() != null)
            {
                GuildSearchLogic.Instance().UpdateSearchList();
            }
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
Exemplo n.º 3
0
    void OnEnable()
    {
        m_Instance = this;

        m_GuildNameInput.defaultText = StrDictionary.GetClientDictionaryString("#{10353}");
        m_NoneResultLabel.SetActive(false);
    }
Exemplo n.º 4
0
        public uint Execute(PacketDistributed ipacket)
        {
            GC_GUILD_SEARCH packet = (GC_GUILD_SEARCH)ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            if (GuildSearchLogic.Instance() != null)
            {
                GuildSearchLogic.Instance().RefreshSearchResult(packet);
            }
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }