public void hide(INameObj role)
        {
            if (!dItem.ContainsKey(role))
            {
                return;
            }
            PlayerNameItem item = dItem[role];

            item.clear();
            item.visiable = false;
            dItem.Remove(role);
            lItem.Remove(item);
            lPool.Add(item);
        }
Пример #2
0
        public void hide(INameObj role)
        {
            bool flag = !this.dItem.ContainsKey(role);

            if (!flag)
            {
                PlayerNameItem playerNameItem = this.dItem[role];
                playerNameItem.clear();
                playerNameItem.visiable = false;
                this.dItem.Remove(role);
                this.lItem.Remove(playerNameItem);
                this.lPool.Add(playerNameItem);
            }
        }