Update runtime code

pull/51/head
hevinci 2022-10-14 11:19:23 +08:00
parent 66304c91ec
commit 72a49d0ed8
3 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ namespace YooAsset
// 创建驱动器 // 创建驱动器
_isInitialize = true; _isInitialize = true;
UnityEngine.GameObject driverGo = new UnityEngine.GameObject($"[{nameof(YooAssets)}]"); UnityEngine.GameObject driverGo = new UnityEngine.GameObject($"[{nameof(YooAssets)}]");
driverGo.AddComponent<YooAssetDriver>(); driverGo.AddComponent<YooAssetsDriver>();
UnityEngine.Object.DontDestroyOnLoad(driverGo); UnityEngine.Object.DontDestroyOnLoad(driverGo);
#if DEBUG #if DEBUG

View File

@ -2,7 +2,7 @@
namespace YooAsset namespace YooAsset
{ {
internal class YooAssetDriver : MonoBehaviour internal class YooAssetsDriver : MonoBehaviour
{ {
void Update() void Update()
{ {