From c627e0a08044f449e411d60dd12d6fc1acf330c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=A6=E5=8F=B3=E7=9C=8B?= <1918891542@qq.com> Date: Wed, 12 Jul 2023 09:27:23 +0800 Subject: [PATCH] minor bug fix --- Assets/Scripts/UmaDatabase/UmaDataTypes.cs | 1 + Assets/Scripts/umamusume/Gallop/Live/Director.cs | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Assets/Scripts/UmaDatabase/UmaDataTypes.cs b/Assets/Scripts/UmaDatabase/UmaDataTypes.cs index 13cad6c..ea8a8bd 100644 --- a/Assets/Scripts/UmaDatabase/UmaDataTypes.cs +++ b/Assets/Scripts/UmaDatabase/UmaDataTypes.cs @@ -29,6 +29,7 @@ public class UmaDatabaseEntry public static void DownloadAsset(UmaDatabaseEntry entry) { var path = $"{Config.Instance.MainPath}\\dat\\{entry.Url.Substring(0, 2)}\\{entry.Url}"; + Debug.Log("Downloading:" + entry.Name); UmaViewerDownload.DownloadAssetSync(entry, path , delegate(string msg, UIMessageType type) { Instance.ShowMessage(msg, type); diff --git a/Assets/Scripts/umamusume/Gallop/Live/Director.cs b/Assets/Scripts/umamusume/Gallop/Live/Director.cs index 25787d4..fd55b3a 100644 --- a/Assets/Scripts/umamusume/Gallop/Live/Director.cs +++ b/Assets/Scripts/umamusume/Gallop/Live/Director.cs @@ -512,15 +512,15 @@ namespace Gallop.Live { if (!_soloMode) { - if(liveMusic.time > 0) + if(liveMusic.time > 0.1) { - _liveCurrentTime = liveMusic.time / 1000; + _liveCurrentTime = (float)liveMusic.time / 1000; _syncTime = true; } } else { - if(liveSong.time > 0) + if(liveSong.time > 0.1) { _liveCurrentTime = liveSong.time; _syncTime = true; @@ -530,7 +530,8 @@ namespace Gallop.Live else { _liveCurrentTime += Time.deltaTime; - //Debug.Log(_liveCurrentTime * 60); + //Debug.Log((float)liveMusic.time / 1000); + //Debug.Log(_liveCurrentTime); OnTimelineUpdate(_liveCurrentTime); } }