void CreateMoviePanels(SearchResults _movieList) { foreach (SearchResults.MovieContents _movieContent in _movieList.Search) { GameObject _newMovieListing = Instantiate(emptyMoviePanel, contentPanel); MoviePanel _newMoviePanel = _newMovieListing.GetComponent <MoviePanel>(); _newMoviePanel.SetTitle(_movieContent.Title); _newMoviePanel.SetImagePoster(_movieContent.Poster); moviePanels.Add(_newMoviePanel); } }
private void MoviePanel_OnMoviePlaybackComplete(On.MoviePanel.orig_OnMoviePlaybackComplete orig, MoviePanel self) { // Should happen often enough (before we get to the PodScreen) in order to work out. if (!runInMovie) { // Set GameConfig SetGameConfig(); runInMovie = true; } orig(self); }