void loadContent() { JsonToObject jo = new JsonToObject(); ExhibitData exhibit = jo.loadJson <ExhibitData>(Globals.exhibit); txtDescription.text = exhibit.descriere; txtTitle.text = exhibit.titlu + '\n'; if (imgOpera != null) { imgOpera.sprite = Resources.Load <Sprite>("Sprites/" + exhibit.denumire); } }
void loadContent() { JsonToObject jo = new JsonToObject(); AuthorData author = jo.loadJson <AuthorData>(Globals.author); if (imgOpera != null) { imgOpera.sprite = Resources.Load <Sprite>("Sprites/" + author.photo_id); } txtTitle.text = author.full_name; txtDescription.text = "Born : " + author.born_year + "\n"; txtDescription.text += "Died : " + author.died_year + "\n"; txtDescription.text += "Location : " + author.location; }