Esempio n. 1
0
    public void createCardObject(int pos)
    {
        if (MineFightData.getInstance().cardsNumber() > 0)
        {
            CardData cardData = MineFightController.getInstance().substitute(pos);
            Card     card     = Card.create(cardData);
            card.setParent(parentGame);
            card.setPosition(new Vector3(Screen.width, 0, 0));
            card.setScale(doSize);
            card.moveTo(viewPosList[pos]);
            viewCardDic.Add(pos, card);

            EventListener eve = EventListener.Get(card.getObj());
            eve.onDown = BtnCallBack;
            eve.DOKill();
            initOutCardRule();
        }
    }