minor bug fix

This commit is contained in:
左右看
2023-07-12 09:27:23 +08:00
parent c04b8107c9
commit c627e0a080
2 changed files with 6 additions and 4 deletions
@@ -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);
@@ -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);
}
}