Ejemplo n.º 1
0
        public virtual void SetZhuaGangLayout(int card)
        {
            var mahjong = GameCenter.Scene.MahjongCtrl.PopMahjong(card);

            mahjong.ExSetParent(transform);
            ItemStore.Add(mahjong);

            var offsetZ = MiscUtility.MahjongSize.z;
            var pos     = ItemStore[1].transform.localPosition + new Vector3(0, 0, -offsetZ);

            mahjong.transform.localPosition = pos;

            if (Model.RelativeSeat != RelativeSeat.None)
            {
                var signV3 = SignItem.transform.localPosition;
                signV3.z = -0.45f;
                SignItem.transform.localPosition = signV3;
            }
        }