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); } }
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); } } }