fix(yarn): 修正 Yarn 对话中 Timeline 调用路径并更新指令

This commit is contained in:
2026-04-19 14:59:58 +08:00
parent 442e419f80
commit fcf5b94472
7 changed files with 42 additions and 40 deletions
@@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using AibisDream.FixSystem;
using AibisDream;
@@ -165,19 +165,19 @@ namespace AibisDream.MiniGame.Language
yield return ExpressionManager.StartCoroutine(ExpressionManager.TransitionGlitchAndWait(to, duration));
}
/// <summary>
/// Glitch 噪波过渡(指定起止值),等待完成后再继续下一步。
/// </summary>
[YarnCommand("glitch_transition")]
public static IEnumerator GlitchTransition(float from, float to, float duration)
{
if (ExpressionManager == null)
{
UnityEngine.Debug.LogError("ExpressionManager 未找到!");
yield break;
}
yield return ExpressionManager.StartCoroutine(ExpressionManager.TransitionGlitchAndWait(from, to, duration));
}
// /// <summary>
// /// Glitch 噪波过渡(指定起止值),等待完成后再继续下一步。
// /// </summary>
// [YarnCommand("glitch_transition")]
// public static IEnumerator GlitchTransition(float from, float to, float duration)
// {
// if (ExpressionManager == null)
// {
// UnityEngine.Debug.LogError("ExpressionManager 未找到!");
// yield break;
// }
// yield return ExpressionManager.StartCoroutine(ExpressionManager.TransitionGlitchAndWait(from, to, duration));
// }
}
}