Esempio n. 1
0
    void initiBTNs()
    {
        GameObject tmp = GameObject.Find("4BTNS");

        for (int i = 0; i < 4; i++)
        {
            TheBTN b = tmp.transform.GetChild(i).GetComponent <TheBTN>();
            b.suit = i + 1;
            BTNs.Add(b);
        }
    }
Esempio n. 2
0
    public static void MatchTheBTNs(TheBTN _btn)
    {
        int index = Manage.pressNum;

        if (_btn.suit == TargetManage.CubeList[index].suit)
        {
            if (index < 4)
            {
                TargetManage.CubeList[index].transform.localScale = new Vector3(0.7f, 0.7f, 0.7f);
            }
        }
    }