public void XuatDaTa() { if (children.Count > 0) { PhepToan tmvi; int chon = UnityEngine.Random.Range(0, children.Count); vtg = chon; tmvi = new PhepToan(children[chon].Pheptoan, children[chon].Giatri, children[chon].mLoai); BangKq = children[chon]; SpItemMonkey levelCreate = spPrefab.Spawn <SpItemMonkey> ( new Vector3(-5f, -241f, 33), spPrefab.transform.rotation ); levelCreate.Giatri = tmvi.Ketqua; levelCreate.Pheptoan = "" + tmvi.Congthuc; levelCreate.setData(tmvi.Loai); BangSoSanh = levelCreate; BangSoSanh.gameObject.SetActive(true); currentState = State.InGame1; ConKhi.SetSprite("khihoi"); } }