public AdvCommandBgEvent(StringGridRow row, AdvSettingDataManager dataManager) : base(row) { this.label = base.ParseCell <string>(AdvColumnName.Arg1); if (!dataManager.TextureSetting.ContainsLabel(this.label)) { Debug.LogError(base.ToErrorString(this.label + " is not contained in file setting")); } this.graphic = dataManager.TextureSetting.LabelToGraphic(this.label); base.AddLoadGraphic(this.graphic); this.fadeTime = base.ParseCellOptional <float>(AdvColumnName.Arg6, 0.2f); }
public AdvCommandBg(StringGridRow row, AdvSettingDataManager dataManager) : base(row) { string label = base.ParseCell <string>(AdvColumnName.Arg1); if (!dataManager.TextureSetting.ContainsLabel(label)) { Debug.LogError(base.ToErrorString(label + " is not contained in file setting")); } this.graphic = dataManager.TextureSetting.LabelToGraphic(label); base.AddLoadGraphic(this.graphic); this.layerName = base.ParseCellOptional <string>(AdvColumnName.Arg3, string.Empty); if (!string.IsNullOrEmpty(this.layerName) && !dataManager.LayerSetting.Contains(this.layerName, AdvLayerSettingData.LayerType.Bg)) { Debug.LogError(base.ToErrorString(this.layerName + " is not contained in layer setting")); } this.fadeTime = base.ParseCellOptional <float>(AdvColumnName.Arg6, 0.2f); }