예제 #1
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();
 }
예제 #2
0
        public ExtraVideoDataSet Load()
        {
            ExtraVideoDataSet dataSet = null;

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