Sync fork (#73)

* Improved UI layout and live vocals

* New Live Compatibility

* Android build support

* Update build.yml

* Fix issues with the new version of the game

* add config button

* Improve performance

* bug fix, new uma compatibility

---------

Co-authored-by: CroakFang <1605296300@qq.com>
This commit is contained in:
katboi01
2024-11-06 23:58:45 +01:00
committed by GitHub
parent 817b8a3954
commit d97cb906de
23 changed files with 919 additions and 269 deletions
+14 -4
View File
@@ -4,7 +4,6 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
using UnityEngine;
using static UnityEngine.Rendering.VirtualTexturing.Debugging;
public class UmaAssetManager : MonoBehaviour
@@ -55,14 +54,25 @@ public class UmaAssetManager : MonoBehaviour
SearchAB(Main, entry, ref result);
}
var percent_num = result.Count / 100;
for (int i = 0; i < result.Count; i++)
{
var exist = LoadAB(result[i]);
if (!exist)
{
var entry = result[i];
if (!entry.IsAssetBundle)
{
var file = entry.FilePath; // trigger download
OnLoadProgressChange?.Invoke(i, result.Count, null);
yield return null;
}
else
{
var exist = LoadAB(result[i]);
if (!exist && i % percent_num == 0)
{
OnLoadProgressChange?.Invoke(i, result.Count, null);
yield return null;
}
}
}
OnLoadProgressChange?.Invoke(-1, result.Count, null);