public void SetData(EsObject es) { if (es.variableExists("description")) { lbldecription.text = es.getString("description"); } if (es.variableExists("gameId")) { this.gameId = es.getInteger("gameId"); } if (gameId < 0) { btnView.gameObject.SetActive(false); } GameObject obj = (GameObject)GameObject.Instantiate(tablePrefab); PopupTable tableitem = obj.GetComponent <PopupTable>(); obj.transform.parent = gridTable.transform; tableitem.transform.localPosition = Vector3.zero; tableitem.transform.localScale = Vector3.one; tableitem.SetData(es); gridTable.Reposition(); }
public void InitPopup(TableObject objTable) { PopupTable.InitPopup(objTable); }