public static ListCuocUView CreateTest() { if (_instance == null) { GameObject obj = (GameObject)GameObject.Instantiate(Resources.Load("Prefabs/Gameplay/CuocU/ListCuocUPrefab")); obj.name = "__ListCuocU"; obj.transform.position = new Vector3(3, 68, -129f); _instance = obj.GetComponent <ListCuocUView>(); } _instance.AddListCuocU(); return(_instance); }
public static ListCuocUView Create(float time, float timeCountdown) { if (_instance == null) { GameObject obj = (GameObject)GameObject.Instantiate(Resources.Load("Prefabs/Gameplay/CuocU/ListCuocUPrefab")); obj.name = "__ListCuocU"; obj.transform.position = new Vector3(3, 68, -129f); _instance = obj.GetComponent <ListCuocUView>(); GameModelChan.HideAvatarPlayer(false); } _instance.StartTimer(time, timeCountdown); return(_instance); }
public void setData(CuocUXuong item, ListCuocUView cuocView) { this.cuoc = item; lbCuocName.text = cuoc.name; this.cuocView = cuocView; }