Exemplo n.º 1
0
        private void OnRevWallMahjongFinish()
        {
            //获得最后一个牌墙的位置
            var lastChair = _getMahjongChair;

            if (lastChair != UtilFunc.GetPerChair(lastChair, WallMj.Length))
            {
                var len = WallMj.Length;
                for (int i = 0; i < len; i++)
                {
                    var curChair = UtilFunc.GetPerChair(lastChair, WallMj.Length);
                    if (curChair != _getMahjongChair && WallMj[curChair].GetMjCnt() > 0)
                    {
                        lastChair = curChair;
                    }
                    else
                    {
                        break;
                    }
                }
            }
            WallMj[lastChair].RevPopMahjong();
        }