Ejemplo n.º 1
0
        // Start is called before the first frame update
        void Start()
        {
            Request req = new Request(GameApiScript.urlScene(), GameApiScript.bodyGetScene(), RequestType.GET);

            WebCallScript.instance.callUrl(req, (errNode, sucNode) => {
                if (errNode != null)
                {
                    Debug.Log(errNode);
                }
                else
                {
                    Debug.Log(sucNode);
                    instantiateButtons(sucNode["data"]["scenes"]);
                }
            });
        }