IEnumerator GetImageStart(WWW www, GamePresetLineupInfo index) { yield return(www); Texture2D tmpTex = new Texture2D(0, 0); www.LoadImageIntoTexture(tmpTex); index.texture = tmpTex; count += 1; if (count == GGPL.Response.data.Count) { try{ UserMgr.LineUpList.Add(transform.parent.FindChild("BG").FindChild("GameSeq").GetComponent <UILabel>().text, GGPL.Response.data); } catch { Debug.Log("Same"); } GSE = new GetScheduleEvent(new EventDelegate(this, "GET")); NetMgr.GetScheduleToday(GSE); } }
IEnumerator GetImage(WWW www, GamePresetLineupInfo index) { yield return(www); Texture2D tmpTex = new Texture2D(0, 0); www.LoadImageIntoTexture(tmpTex); index.texture = tmpTex; count += 1; if (count == GGPL.Response.data.Count) { try{ UserMgr.LineUpList.Add(transform.FindChild("BG").FindChild("gameSeq").GetComponent <UILabel> ().text, GGPL.Response.data); } catch { Debug.Log("Same Line Up"); } List = UserMgr.LineUpList[transform.FindChild("BG").FindChild("gameSeq").GetComponent <UILabel> ().text]; SetPresettingSetting(); } }