public TalkInfo(TalkCSV csv) { if (Utils.IsEnumParseName(typeof(DataMgr.Stage), csv.Stage)) { Stage = (DataMgr.Stage)Enum.Parse(typeof(DataMgr.Stage), csv.Stage); } else { Stage = DataMgr.Stage.Tutorial; } Character = csv.Character; Number = csv.Number; Start = csv.Start; End = csv.End; }
public StoryUIDesineInfo(StoryUIDesineCSV csv) { if (Utils.IsEnumParseName(typeof(DataMgr.Stage), csv.Stage)) { Stage = (DataMgr.Stage)Enum.Parse(typeof(DataMgr.Stage), csv.Stage); } else { Stage = DataMgr.Stage.Tutorial; } Step = csv.Step; Desc_Korea = csv.Desc_Korea; Desc_Eng = csv.Desc_Eng; IsEnd = csv.End == 0 ? false : true; Icon = csv.Icon; }
public DataMgr.Stage GetSaveStage() { string mode = PlayerPrefs.GetString("SaveStage"); DataMgr.Stage stage = DataMgr.Stage.Tutorial; if (Utils.IsEnumParseName(typeof(DataMgr.Stage), mode)) { stage = (DataMgr.Stage)Enum.Parse(typeof(DataMgr.Stage), mode); } else { stage = DataMgr.Stage.Tutorial; } return(stage); }
public StageMapSettingInfo(StageMapSettingCSV csv) { if (Utils.IsEnumParseName(typeof(DataMgr.Stage), csv.Stage)) { Stage = (DataMgr.Stage)Enum.Parse(typeof(DataMgr.Stage), csv.Stage); } else { Stage = DataMgr.Stage.Tutorial; } Name = csv.Name; index = csv.index; if (Utils.IsEnumParseName(typeof(MapType), csv.Type)) { Type = (MapType)Enum.Parse(typeof(MapType), csv.Type); } else { Type = MapType.None; } }
public void SetSaveStage(DataMgr.Stage stage) { NowStage = stage; PlayerPrefs.SetString("SaveStage", stage.ToString()); }