Пример #1
0
    // Use this for initialization
    void Start()
    {
        txt_diem.gameObject.SetActive(false);
        for (int i = 0; i < cardHand.getSizeArrayCard(); i++)
        {
            LiengInput liengIP = new LiengInput(cardHand,
                                                cardHand.getCardbyPos(i), this);

            cardHand.getCardbyPos(i).setListenerClick(delegate {
                liengIP.click();
            });
        }
    }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        //if (pos != 0)
        //{
        //    cardHand.getCardbyPos(0).transform.localRotation = Quaternion.Euler(new Vector3(0, 0, 20));
        //    cardHand.getCardbyPos(1).transform.localRotation = Quaternion.Euler(new Vector3(0, 0, 0));
        //    cardHand.getCardbyPos(2).transform.localRotation = Quaternion.Euler(new Vector3(0, 0, -20));

        //}
        for (int i = 0; i < cardHand.getSizeArrayCard(); i++)
        {
            LiengInput liengIP = new LiengInput(cardHand,
                                                cardHand.getCardbyPos(i), this);

            cardHand.getCardbyPos(i).setListenerClick(delegate
            {
                liengIP.click();
            });
        }
    }