public void OnDetailedResult(string rez)
        {
            EmptyContent();

            DetailedOpenMovie dom = DetailedOpenMovie.CreateFromJSON(rez);

            if (!dom.Response)
            {
                return;
            }

            OpenMovieItem omi = GameObject.Instantiate <OpenMovieItem>(omiPrefab, contentRoot);

            omi.Init(dom);
        }
Esempio n. 2
0
        public void Init(DetailedOpenMovie dom)
        {
            om_ = null;

            txt.text  = "Title: <color=white>" + dom.Title + "</color>\n";
            txt.text += "Year: <color=red>" + dom.Year + "</color>\n";
            txt.text += "Genre: <color=white>" + dom.Genre + "</color>\n";
            txt.text += "Language: <color=red>" + dom.Language + "</color>\n";
            txt.text += "Country: <color=white>" + dom.Country + "</color>\n";
            txt.text += "Director: <color=red>" + dom.Director + "</color>\n";
            txt.text += "Awards: <color=white>" + dom.Awards + "</color>\n";
            txt.text += "Actors: <color=red>" + dom.Actors + "</color>\n";

            StartCoroutine(GetPoster(dom.Poster));
        }