排障 小修改
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using TMPro;
|
||||
using UniRx;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Networking;
|
||||
@@ -18,6 +19,8 @@ namespace Ichni
|
||||
|
||||
public IntReactiveProperty waitingBundleAmount;
|
||||
|
||||
public TMP_Text LogWindow;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
if (instance == null)
|
||||
@@ -52,11 +55,12 @@ namespace Ichni
|
||||
{
|
||||
waitingBundleAmount = new IntReactiveProperty(list.Count);
|
||||
Debug.Log("Waiting for " + list.Count + " AssetBundles to load.");
|
||||
LogWindow.text += "Waiting for " + list.Count + " AssetBundles to load.\n";
|
||||
foreach (var bundle in list)
|
||||
{
|
||||
LoadThemeBundle(bundle);
|
||||
}
|
||||
|
||||
|
||||
selectedThemeBundleList = list;
|
||||
}
|
||||
|
||||
@@ -131,6 +135,7 @@ namespace Ichni
|
||||
|
||||
yield return new WaitForEndOfFrame();
|
||||
print(themeBundleName + " Done!");
|
||||
LogWindow.text += themeBundleName + " Done!\n";
|
||||
waitingBundleAmount.Value--;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user