From 93b58149d2393f3d60314e3a88d99d5b41e08b94 Mon Sep 17 00:00:00 2001 From: hevinci Date: Tue, 30 May 2023 15:03:22 +0800 Subject: [PATCH] update runtime code --- Assets/YooAsset/Runtime/YooAssets.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/YooAsset/Runtime/YooAssets.cs b/Assets/YooAsset/Runtime/YooAssets.cs index 3faf131..5402729 100644 --- a/Assets/YooAsset/Runtime/YooAssets.cs +++ b/Assets/YooAsset/Runtime/YooAssets.cs @@ -19,7 +19,10 @@ namespace YooAsset public static void Initialize(ILogger logger = null) { if (_isInitialize) - throw new Exception($"{nameof(YooAssets)} is initialized !"); + { + UnityEngine.Debug.LogWarning($"{nameof(YooAssets)} is initialized !"); + return; + } if (_isInitialize == false) {