minor bug fix
This commit is contained in:
@@ -29,6 +29,7 @@ public class UmaDatabaseEntry
|
|||||||
public static void DownloadAsset(UmaDatabaseEntry entry)
|
public static void DownloadAsset(UmaDatabaseEntry entry)
|
||||||
{
|
{
|
||||||
var path = $"{Config.Instance.MainPath}\\dat\\{entry.Url.Substring(0, 2)}\\{entry.Url}";
|
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)
|
UmaViewerDownload.DownloadAssetSync(entry, path , delegate(string msg, UIMessageType type)
|
||||||
{
|
{
|
||||||
Instance.ShowMessage(msg, type);
|
Instance.ShowMessage(msg, type);
|
||||||
|
|||||||
@@ -512,15 +512,15 @@ namespace Gallop.Live
|
|||||||
{
|
{
|
||||||
if (!_soloMode)
|
if (!_soloMode)
|
||||||
{
|
{
|
||||||
if(liveMusic.time > 0)
|
if(liveMusic.time > 0.1)
|
||||||
{
|
{
|
||||||
_liveCurrentTime = liveMusic.time / 1000;
|
_liveCurrentTime = (float)liveMusic.time / 1000;
|
||||||
_syncTime = true;
|
_syncTime = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(liveSong.time > 0)
|
if(liveSong.time > 0.1)
|
||||||
{
|
{
|
||||||
_liveCurrentTime = liveSong.time;
|
_liveCurrentTime = liveSong.time;
|
||||||
_syncTime = true;
|
_syncTime = true;
|
||||||
@@ -530,7 +530,8 @@ namespace Gallop.Live
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
_liveCurrentTime += Time.deltaTime;
|
_liveCurrentTime += Time.deltaTime;
|
||||||
//Debug.Log(_liveCurrentTime * 60);
|
//Debug.Log((float)liveMusic.time / 1000);
|
||||||
|
//Debug.Log(_liveCurrentTime);
|
||||||
OnTimelineUpdate(_liveCurrentTime);
|
OnTimelineUpdate(_liveCurrentTime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user