Add UpdateDatabase Button

This commit is contained in:
CroakFang
2022-12-21 17:54:36 +08:00
parent c6434cadbc
commit 49305e7622
10 changed files with 497 additions and 62 deletions
+10 -2
View File
@@ -88,6 +88,8 @@ public class UmaViewerUI : MonoBehaviour
public FaceDrivenKeyTarget currentFaceDrivenKeyTarget;
private IEnumerator UpdateResVerCoroutine;
private void Awake()
{
Instance = this;
@@ -713,8 +715,6 @@ public class UmaViewerUI : MonoBehaviour
}
}
public void AudioPause()
{
if (Builder.CurrentAudioSources.Count>0)
@@ -919,4 +919,12 @@ public class UmaViewerUI : MonoBehaviour
}
}
}
public void UpdateGameDB() {
if (UpdateResVerCoroutine != null) return;
ManifestDB dB = new ManifestDB();
UpdateResVerCoroutine = dB.UpdateResourceVersion(delegate (string msg) { LyricsText.text = msg; });
StartCoroutine(UpdateResVerCoroutine);
}
}