示例#1
0
    private void LoadAllMemeber(GuildMemberRow own)
    {
        ReadOnlyCollection <GuildMemberRow> members = guildSys.GuildTable.ReadOnlyRows;
        int count = members.Count;

        for (int i = 0; i < count; i++)
        {
            int       capture = i;
            MemberTag tag     = PoolTag.GetItem();

            if (ChangableGradePermission(own, members[capture]))
            {
                tag.IncreaseGradeBtn.OnClickEvents += () => S_PROMOTE(members[capture]);
                tag.DecreaseGradeBtn.OnClickEvents += () => S_DECREASE_GRADE(members[capture]);
            }
            else
            {
                tag.IncreaseGradeBtn.gameObject.SetActive(false);
                tag.DecreaseGradeBtn.gameObject.SetActive(false);
            }
            if (KickPermission(own, members[capture]))
            {
                tag.KickBtn.OnClickEvents += () => S_KICKOUT_GUILD(members[capture]);
            }
            else
            {
                tag.KickBtn.gameObject.SetActive(false);
            }

            CatchingTags.Enqueue(tag);
            tag.gameObject.SetActive(true);
        }
    }
示例#2
0
 private void Release()
 {
     while (CatchingTags.Count > 0)
     {
         PoolTag.Release(CatchingTags.Dequeue());
     }
 }