Exemplo n.º 1
0
 //[HideInInspector]
 //public VideoDataSet videoDataSet;
 public void Load()
 {
     videoDataSet = new VideoDataSet();
     videoDataSet.Load();
     videoSourceDataSet = new VideoSourceDataSet();
     videoSourceDataSet.Load();
     chapterDataSet = new ChapterDataSet();
     chapterDataSet.Load();
     optionActionDataSet = new OptionActionDataSet();
     optionActionDataSet.Load();
     QTEActionDataSet = new QTEActionDataSet();
     QTEActionDataSet.Load();
     optionDataSet = new OptionDataSet();
     optionDataSet.Load();
     conditionDataSet = new ConditionDataSet();
     conditionDataSet.Load();
     gameVariableSet = new GameVariableSet();
     gameVariableSet.Load();
     // extraVideoDataSet = new ExtraVideoDataSet();
     // extraVideoDataSet.Load();
     //          extraVideoConditionDataSet = new ExtraVideoConditionDataSet();
     //          extraVideoConditionDataSet.Load();
     characterDataSet = new CharacterDataSet();
     characterDataSet.Load();
 }
Exemplo n.º 2
0
 public void Clear()
 {
     videoDataSet               = null;
     videoSourceDataSet         = null;
     chapterDataSet             = null;
     optionActionDataSet        = null;
     QTEActionDataSet           = null;
     optionDataSet              = null;
     conditionDataSet           = null;
     gameVariableSet            = null;
     extraVideoDataSet          = null;
     extraVideoConditionDataSet = null;
     chapterDataSet             = null;
     Resources.UnloadUnusedAssets();
 }
Exemplo n.º 3
0
        public VideoSourceDataSet Load()
        {
            VideoSourceDataSet dataSet = null;

            if (GameDataManager.Instance.dataType == DataType.Json)
            {
                string content = GameDataManager.Instance.GetDataSet <string>("VideoSourceDataSet");
                VideoSourceDataList = JsonMapper.ToObject <List <VideoSourceData> >(content);
                dataSet             = this;
            }
            else if (GameDataManager.Instance.dataType == DataType.UnityAsset)
            {
                dataSet = GameDataManager.Instance.GetDataSet <VideoSourceDataSet>("VideoSourceDataSet");
            }
            dataSet.OnLoadFinished();
            return(dataSet);
        }