问题修复

1. 保存存档时立绘信息未保存
2. AMB切到Main时失效
3. 跳过对话功能不停止语音
This commit is contained in:
2025-03-18 14:37:40 +08:00
parent 5e83999be8
commit f22b7087fb
11 changed files with 19 additions and 20 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ namespace AibisDream
gameObject.SetActive(false);
}
public bool TrySkipLine()
public bool TrySkipLine(bool isForceSkip)
{
// 无法跳过
return true;
+2 -2
View File
@@ -76,9 +76,9 @@ namespace AibisDream
gameObject.SetActive(false);
}
public bool TrySkipLine()
public bool TrySkipLine(bool isForceSkip)
{
if (_skipLineDelay)
if (_skipLineDelay && !isForceSkip)
{
return true;
}
+2 -2
View File
@@ -165,9 +165,9 @@ namespace AibisDream
/// false说明对话已经显示完成了,可以跳过
/// </summary>
/// <returns></returns>
public virtual bool TrySkipLine()
public virtual bool TrySkipLine(bool isForceSkip)
{
if (_skipLineDelay)
if (_skipLineDelay && !isForceSkip)
{
return true;
}
@@ -68,9 +68,9 @@ namespace AibisDream
_dialogViews?.ForEach(item => item.HideDialog());
}
public bool TrySkipLine()
public bool TrySkipLine(bool isForceSkip = false)
{
return _currentView == null || _currentView.TrySkipLine();
return _currentView == null || _currentView.TrySkipLine(isForceSkip);
}
public void NextStep()
@@ -169,9 +169,9 @@ namespace AibisDream
_curView.HideDialog();
}
public bool TrySkipLine()
public bool TrySkipLine(bool isForceSkip = false)
{
return _lastShowView != null && _lastShowView.TrySkipLine();
return _lastShowView != null && _lastShowView.TrySkipLine(isForceSkip);
}
public void NextStep()
+1 -1
View File
@@ -16,7 +16,7 @@ namespace AibisDream
public void HideDialog();
public bool TrySkipLine();
public bool TrySkipLine(bool isForceSkip = false);
public void NextStep();
}
-2
View File
@@ -18,8 +18,6 @@ namespace AibisDream.Framework
#endregion
private bool _skipLineDelay;
public bool IsShowingText => _typewriter.isShowingText;
private void Awake()
@@ -103,9 +103,9 @@ namespace AibisDream
}
}
public bool TrySkipLine()
public bool TrySkipLine(bool isForceSkip)
{
if (_skipLineDelay)
if (_skipLineDelay && !isForceSkip)
{
return true;
}