/// <summary> /// Reload this sheet live from the server /// </summary> public void Reload(System.Action onCallLoaded) { Debug.Log("Load Sheet \"objects\""); GameObject go = new GameObject("UnityReload"); DataReload_load.Load(go, 0, "objects", iCaroutineLoad(go, "https://spreadsheets.google.com/feeds/cells/1XPvDNffDlmEywlRuRhTFSRuVVWZdoDNbxZ8JxUB1XcE/od6/public/basic?alt=json-in-script", onCallLoaded)); }
public static void Load(GameObject go, int idx, string label, IEnumerator ieNumerator) { DataReload_load cmp = go.AddComponent <DataReload_load>(); cmp.label = label; cmp.idx = idx; cmp.StartCoroutine(ieNumerator); }