public AdvScenarioTextDataInPage(AdvCommand command) { Command = command; if (command.RowData == null) { //暗黙的だけど、選択肢の後の改ページ待ちのために IsCharacterShowOnly = false; PageCtrlType = AdvPageControllerType.None; IsPageEnd = true; IsEmptyText = true; return; } else { //暗黙的だけどキャラ表示のみの場合 IsCharacterShowOnly = command.IsEmptyCell(AdvColumnName.Text) && command.IsEmptyCell(AdvColumnName.PageCtrl); if (IsCharacterShowOnly) { IsEmptyText = true; IsPageEnd = false; } else { IsEmptyText = false; if (command.IsEmptyCell(AdvColumnName.PageCtrl)) { this.PageCtrlType = AdvPageControllerType.None; } else { float autoBrTime; string pageCtrl = command.ParseCell <string>(AdvColumnName.PageCtrl); if (float.TryParse(pageCtrl, out autoBrTime)) { AutoBrTime = autoBrTime; } else { this.PageCtrlType = command.ParseCellOptional <AdvPageControllerType>(AdvColumnName.PageCtrl, AdvPageControllerType.None); } } IsPageEnd = AdvPageController.IsPageEndType(PageCtrlType); IsNextBr = AdvPageController.IsBrType(PageCtrlType); //エディター用のチェック if (AdvCommand.IsEditorErrorCheck) { TextData textData = new TextData(command.ParseCellLocalizedText()); if (!string.IsNullOrEmpty(textData.ErrorMsg)) { Debug.LogError(command.ToErrorString(textData.ErrorMsg)); } } } } }