chore(huoshan): 移除表达开发预览与调试快捷键残留

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-25 19:48:06 +08:00
co-authored by Cursor
parent 0d40b8db14
commit be1ab7ed80
5 changed files with 1 additions and 53 deletions
@@ -251,34 +251,6 @@ namespace AibisDream
yield return particleManager.WaitUntilFocusFinished();
}
/// <summary>
/// 开发预览:跳过玩法,直接进入 FocusHolding(目标字已就位)。
/// </summary>
public IEnumerator SkipToFocusHoldingPreview()
{
if (particleManager == null)
yield break;
if (!particleManager.IsInitialized)
yield break;
yield return particleManager.WaitUntilExpressionFlowReady();
particleManager.DebugCompleteTargets();
float timeout = 8f;
float elapsed = 0f;
while (elapsed < timeout &&
particleManager.CurrentCompletionPhase != CompletionPhase.FocusHolding &&
particleManager.CurrentCompletionPhase != CompletionPhase.Focusing)
{
elapsed += Time.deltaTime;
yield return null;
}
while (particleManager.CurrentCompletionPhase == CompletionPhase.Focusing)
yield return null;
}
/// <summary>
/// 关闭表达系统
/// </summary>
@@ -273,9 +273,6 @@ namespace AibisDream.MiniGame.Language
// 是否已经初始化
private bool isInitialized = false;
public bool IsInitialized => isInitialized;
public CompletionPhase CurrentCompletionPhase => completionPhase;
/// <summary>Inspector 中的候选粒子总数,用于未在 Yarn 中指定非目标数量时恢复默认</summary>
private int defaultCandidateCountFromInspector;
private bool hasCapturedDefaultCandidateCount;
@@ -1485,7 +1482,7 @@ namespace AibisDream.MiniGame.Language
/// <summary>
/// 进入 FocusHolding 后启动梳理完成节点。
/// 若当前正处在 Yarn 命令中(如 expression_skip_to_focus,对话仍在跑,则延后到对话空闲再启动。
/// 若当前正处在 Yarn 命令中,对话仍在跑,则延后到对话空闲再启动。
/// </summary>
private void TryStartCompletionDialog()
{
@@ -113,21 +113,6 @@ namespace AibisDream.MiniGame.Language
ExpressionManager.ResetSystem(playEntranceEffect);
}
/// <summary>
/// 开发预览:粒子系统就绪后跳过玩法,直接进入 FocusHolding。
/// <<expression_skip_to_focus>>
/// </summary>
[YarnCommand("expression_skip_to_focus")]
public static IEnumerator ExpressionSkipToFocus()
{
if (ExpressionManager == null)
{
UnityEngine.Debug.LogError("ExpressionManager 未找到!");
yield break;
}
yield return ExpressionManager.StartCoroutine(ExpressionManager.SkipToFocusHoldingPreview());
}
/// <summary>
/// 触发聚焦稳定化(从文字飘动保持态 → 概率递增 → 文字锁定 → 排列),等待全流程完成后返回
/// <<resolve_expression_focus>>