Example #1
0
        public virtual MahjongGroupItem AddGroup(MahjongGroupData groupData, List <MahjongItem> items, bool isOther)
        {
            MahjongGroupItem item = MahjongGroupItem.CreateGroup();

            item.ParentPile = this;
            items           = item.SetGroup(groupData, items, GroupItemWidth, GroupItemHeight, FourOffsetY, isOther, Layout.directon);
            _pileList.Add(item);
            AddItem(item.transform);
            ParseItemToThis(item.transform);
            item.SetLuanFengShow(groupData, items);
            return(item);
        }
Example #2
0
        public virtual MahjongGroupItem AddGroup(MahjongGroupData groupData, List <MahjongItem> items, bool isOther,
                                                 bool changeNumber = true)
        {
            var Item = MahjongGroupItem.CreateGroup();

            Item.ParentPile = this;
            Item.SetGroup(groupData, items, GroupItemWidth, GroupItemHeight, FourOffsetY, isOther, Layout.directon);
            _pileList.Add(Item);
            AddItem(Item.transform);
            ParseItemToThis(Item.transform);
            return(Item);
        }