// Use this for initialization
    void Start()
    {
        ComicManager.readComicsBundleList(Path.Combine(Application.streamingAssetsPath, "streamBundles.json"));

        // try
        // {
        //load story based on static class story manager
        cerita    = new Story(StoryManager.storyType);
        nextScene = StoryManager.nextScene;
        // }
        // catch (System.Exception)
        // {
        //     cerita = new Story(storyJson);
        // }
        currentPhase = -1;
        nextPhase();
    }
Esempio n. 2
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;
 }
Esempio n. 3
0
 void Start()
 {
     ComicManager.readComicsBundleList(Path.Combine(Application.streamingAssetsPath, "streamBundles.json"));
     ayam = new Story(Path.Combine(Application.dataPath, "Data/Story2.json"));
 }