mirror of https://github.com/tuyoogame/YooAsset
Update runtime code
parent
66304c91ec
commit
72a49d0ed8
|
@ -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
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace YooAsset
|
namespace YooAsset
|
||||||
{
|
{
|
||||||
internal class YooAssetDriver : MonoBehaviour
|
internal class YooAssetsDriver : MonoBehaviour
|
||||||
{
|
{
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
Loading…
Reference in New Issue