Example #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();
 }
Example #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();
 }
        public QTEActionDataSet Load()
        {
            QTEActionDataSet dataSet = null;

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