fix(memory): 优化彩色褪色扫光并复位拉杆视觉
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -63,6 +63,22 @@ namespace AibisDream.FixSystem
|
||||
_volume.weight = 0f;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 将拉杆视觉复位到默认位置并清零调谐输出(不播 Timeline、不触发搜索判定)。
|
||||
/// 用于记忆播放结束后回到待机界面。
|
||||
/// </summary>
|
||||
public void ResetVisualToDefault()
|
||||
{
|
||||
IsFound = false;
|
||||
if (slider == null)
|
||||
slider = GetComponent<Slider>();
|
||||
|
||||
slider.SetValueWithoutNotify(defaultValue);
|
||||
if (_volume != null && driveVolume)
|
||||
_volume.weight = 0f;
|
||||
OnTuningChanged?.Invoke(0f);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 新一轮搜索前复位滑条与 IsFound(不播 Timeline、不改变视觉锁状态)。
|
||||
/// 需先设置好 <see cref="TargetValue"/>。
|
||||
|
||||
Reference in New Issue
Block a user