public void CreateTable(List <ItemTableData> listTable) { this.ListTable.Clear(); this.ListTable.AddRange(listTable); if (isAnBanFull) { ListTable.RemoveAll(x => (x.NUser == x.MaxUser)); } myScrollView.ClearCells(); if (Itemtable == null) { LoadAssetBundle.LoadPrefab(BundleName.PREFAPS, PrefabsName.PRE_ITEM_TABLE, (objPre) => { Itemtable = objPre; PopupAndLoadingScript.instance.HideLoading(); myScrollView.OnStartFillItem(Itemtable, ListTable.Count); myScrollView.UpdateInfo = UpdateItemTable; }); } else { PopupAndLoadingScript.instance.HideLoading(); myScrollView.OnStartFillItem(Itemtable, ListTable.Count); myScrollView.UpdateInfo = UpdateItemTable; } }
public void ClickMucCuoc(GameObject obj, long muccuoc) { objCurrentMC.transform.DOScale(1, 0.1f); objCurrentMC.GetComponent <Text>().color = new Color32(255, 255, 255, 255); SoundManager.instance.startClickButtonAudio(); if (objListRoom.transform.childCount > 0) { myScrollView.ClearCells(); } PopupAndLoadingScript.instance.ShowLoading(); //Debug.LogError("Muc Cuoc " + muccuoc); isClickMC = true; currentMC = muccuoc; objCurrentMC = obj; countScale = 0; SendData.onJoinRoom(BaseInfo.gI().typetableLogin); }