Esempio n. 1
0
        private ChatChannelGroupItem AddChannelMaskItem(ChatChannelGroupType type)
        {
            GameObject itemObj = channelMaskItemPrefabRes.InstanceMainRes();

            if (itemObj == null)
            {
                return(null);
            }

            ChatChannelGroupItem item = itemObj.GetComponent <ChatChannelGroupItem>();

            if (item == null)
            {
                return(null);
            }

            item.Init(this, type);

            // 增加Tooltips
            addTooltipsForChannelGroup(ref itemObj, type);

            return(item);
        }