Пример #1
0
        /// <summary>
        /// 扣牌
        /// </summary>
        public void OnBuckleCard()
        {
            MahjongHand.SetMahjongPos();
            var list = MahjongHand.MahjongList;

            for (int i = 0; i < list.Count; i++)
            {
                list[i].RotaTo(new Vector3(-90, 0, 0), GameCenter.DataCenter.Config.TimeGetInCardRote);
            }
        }
Пример #2
0
        public virtual void ShowCards(int showNum)
        {
            var list = MahjongHand.MahjongList;

            MahjongHand.SortHandMahjong();
            for (int i = 0; i < list.Count; i++)
            {
                int zhengFu = -1;
                if (i < showNum)
                {
                    zhengFu = 1;
                }
                list[i].RotaTo(new Vector3(90 * zhengFu, 0, 0), GameCenter.DataCenter.Config.TimeGetInCardRote);
            }
        }