Esempio n. 1
0
 public override void Reset()
 {
     base.Reset();
     _isFinish = false;
     _selectInfo.Reset();
     _specialDuns = null;
     if (SpecialBtn != null)
     {
         SpecialBtn.gameObject.SetActive(false);
     }
     OnClickCancelAllBtn();
 }
Esempio n. 2
0
        public override void ShowChoiseView(ISFSObject cardData)
        {
            base.ShowChoiseView(cardData);

            InitPokerList();

            gameObject.SetActive(true);

            int[] cardArray = cardData.GetIntArray("cards");

            _cardValList = cardArray.ToList();
            HelpLz.SortList(_cardValList);

            HelpLz help = new HelpLz();
            List <HelpLz.PlayerDuns> pd = help.getPlayerDuns(_cardValList);

            //初始化手牌,待删
            for (int i = 0; i < CardsList.Count; i++)
            {
                CardsList[i].SetCardId(_cardValList[i]);
                CardsList[i].SetCardFront();
            }

            RespositionCards();//初始化手牌位置

            if (SpecialBtn != null)
            {
                if (pd.Count > 0 && pd[0].SpecialType > CardType.none)
                {
                    _specialDuns = pd[0];
                    SpecialBtn.gameObject.SetActive(true);
                }
                else
                {
                    _specialDuns = null;
                    SpecialBtn.gameObject.SetActive(false);
                }
            }

            SetChoiseView(_cardValList);
        }