コード例 #1
0
        ///选择卡牌战利品
        public void SelectRewardCard( )
        {
            GameAsst.Inst.launch.transform.Find("UI_PopUp").gameObject.SetActive(true);
            GameAsst.Inst.launch.transform.Find("UI_PopUp/Reward").gameObject.SetActive(true);

            Transform  parent = GameAsst.Inst.launch.gameObject.transform.Find("UI_PopUp/Reward/Select");
            GameObject card;
            int        cardNum = 0;

            while (cardNum != 3)
            {
                int rd = GameAsst._Rd.Next(2, uiBattle.cardPrefabArray.Length);
                card = uiBattle.BuildRewardCard(rd);
                card.transform.SetParent(parent);
                cardNum++;
            }

            UIMgr.Inst.btnJump = popup.Find("Reward/Next").GetComponent <Button> ( );
            UIMgr.Inst.btnJump.onClick.AddListener(OnClickNextGlv);
        }