单空格变多空格

This commit is contained in:
2025-06-16 15:31:53 +08:00
parent baeb678d91
commit eb41646e10
19 changed files with 886 additions and 1412 deletions
@@ -89,7 +89,7 @@ namespace AibisDream.FixSystem
{
if (string.IsNullOrWhiteSpace(dialogLine))
{
dialogLine = " ";
dialogLine = " ";
}
ShowTitle(character.GetActorName());
// 生成新文本组件
@@ -105,6 +105,7 @@ namespace AibisDream.FixSystem
_lineQueue.Enqueue(textItemTypewriter);
// 播放文本
Debug.Log($"Screen {dialogLine}");
textItemTypewriter.ShowText(dialogLine);
textItemTypewriter.onTextShowed.AddListener(() => AfterLineShown(textItemTypewriter, nextStep));
// 强制更新布局
@@ -113,9 +114,11 @@ namespace AibisDream.FixSystem
private void AfterLineShown(TypewriterByCharacter typewriter, Action nextStop)
{
Debug.Log("Screen Shown");
EnumEventSystem.Global.Send(DialogEventEnum.LineShown);
ActionKit.Delay(0.3f, () =>
{
Debug.Log("Screen Shown Next");
EnumEventSystem.Global.Send(DialogEventEnum.LineEnd);
nextStop.Invoke();
}).StartGlobal();