Ejemplo n.º 1
0
    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();
    }
Ejemplo n.º 2
0
 public void InitPopup(TableObject objTable)
 {
     PopupTable.InitPopup(objTable);
 }