回复下

This commit is contained in:
2025-07-14 22:50:10 +08:00
parent ed067faad6
commit 9274281fcb
5 changed files with 7 additions and 120 deletions
+4 -11
View File
@@ -100,29 +100,22 @@ namespace AibisDream
public void NextStep()
{
if (_nextStep == null) return;
ClearBox();
EnumEventSystem.Global.Send(DialogEventEnum.LineEnd);
// 关闭对话
var next = _nextStep;
_nextStep = null;
next.Invoke();
}
/// <summary>
/// 检查当前是否有活动的选项显示
/// </summary>
/// <returns>是否有活动选项</returns>
public bool HasActiveOptions()
{
return _choiceBox != null && _choiceBox.activeSelf;
}
public void OnLocalizationChanged(string value)
{
_textParam = JsonUtil.ReadBeanByText<TextParam>(value);
var tmp = _dialogText.GetComponent<TMP_Text>();
// 修改对话文本
tmp.characterSpacing = _textParam.charSpace;
_actorName.characterSpacing = _textParam.charSpace;
}
/// <summary>