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

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