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