Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     //create/load new/existing story based on static class story manager
     _targetStory = new Story(StoryManager.storyType);
     loadStory();
     // print(Comic.listComicsJson());
     // Comic.writeComicsJson();
     // loadComics();
     resetAddPhaseButton();
     //list and write streaming asset bundle data
     ComicManager.listStreamingComicsBundleJson(Path.Combine(Application.streamingAssetsPath, "streamBundles.json"));
     //read streaming asset bundle data
     ComicManager.readComicsBundleList(Path.Combine(Application.streamingAssetsPath, "streamBundles.json"));
     //add options of bundle in streaming assets
     addDropdownOptions(bundleDropdown, ComicManager.streamBundleList.ToArray());
     //set to load 1st available bundle
     bundleDropdown.value            = 0;
     bundleDropdown.captionText.text = bundleDropdown.options[0].text;
 }