コード例 #1
0
 //handle bundle selection change
 //add option of comic inside bandle into the comic dropdown
 public void bundleChange()
 {
     comicDropdown.options.Clear();
     if (ComicManager.streamContent(bundleDropdown.captionText.text))
     {
         activeComics = ComicManager.getComics(ComicManager.readStreamBundles(Path.Combine(Application.streamingAssetsPath, bundleDropdown.captionText.text)));
     }
     else
     {
         activeComics = ComicManager.getComics(ComicManager.readStreamBundles(Path.Combine(Application.persistentDataPath, bundleDropdown.captionText.text)));
     }
     addDropdownOptions(comicDropdown, activeComics);
     comicDropdown.value            = 0;
     comicDropdown.captionText.text = comicDropdown.options[0].text;
 }