Пример #1
0
        public void InitalizationMahjong(IList <int> cards)
        {
            if (cards.Count == 0)
            {
                return;
            }
            //var template = MahjongUtility.GetScriptableAssets<MahjongCardAssets>().MahjongTemplate;

            var template = GameCenter.Assets.MahjongTemplate;

            for (int i = 0; i < cards.Count; i++)
            {
                OnCreateMahjong(template, MahjongUtility.GetMahjongCardAount(cards[i]));
            }
        }