hold音符补丁 备份

This commit is contained in:
FloatGaming
2026-03-03 14:07:39 +08:00
parent b8704629a3
commit 9011fa022e
36 changed files with 2721 additions and 256 deletions
+10 -1
View File
@@ -487,7 +487,16 @@ public class selected_songInfo : MonoBehaviour
private void UpdateMusicPlaybackProgress()
{
if (preListenAS == null || preListenAS.clip == null || !preListenAS.isPlaying) return;
if (preListenAS == null || preListenAS.clip == null) return;
// 检查是否自然播放结束
if (!preListenAS.isPlaying && preListenAS.time >= preListenAS.clip.length * 0.99f)
{
StopPlayback();
return;
}
if (!preListenAS.isPlaying) return;
// 如果用户没在拖动,则自动更新进度条
if (!Input.GetMouseButton(0))