//[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(); }
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 OptionDataSet Load() { OptionDataSet dataSet = null; if (GameDataManager.Instance.dataType == DataType.Json) { string content = GameDataManager.Instance.GetDataSet<string>("OptionDataSet"); OptionDataList = JsonMapper.ToObject<List<OptionData>>(content); dataSet = this; } else if(GameDataManager.Instance.dataType == DataType.UnityAsset) { dataSet = GameDataManager.Instance.GetDataSet<OptionDataSet>("OptionDataSet"); } dataSet.OnLoadFinished(); return dataSet; }