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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user