using System.Collections.Generic; namespace GFGGame { public class StoryCfgManager : SingletonBase { private List _commonCfgs; private List _hardCfgs; public StoryCfgManager() { _commonCfgs = new List(); _hardCfgs = new List(); StoryChapterCfg[] dataArray = StoryChapterCfgArray.Instance.dataArray; foreach(StoryChapterCfg cfg in dataArray) { if(CalculateHelper.CheckChapterIsHard(cfg.id)) { _hardCfgs.Add(cfg); } else { _commonCfgs.Add(cfg); } } } public List GetDataArray(int storyType) { if(storyType == ConstStoryType.HARD_TYPE) { return _hardCfgs; } else { return _commonCfgs; } } } }