update runtime code

pull/122/head
hevinci 2023-05-30 15:03:22 +08:00
parent c91c49465b
commit 93b58149d2
1 changed files with 4 additions and 1 deletions

View File

@ -19,7 +19,10 @@ namespace YooAsset
public static void Initialize(ILogger logger = null) public static void Initialize(ILogger logger = null)
{ {
if (_isInitialize) if (_isInitialize)
throw new Exception($"{nameof(YooAssets)} is initialized !"); {
UnityEngine.Debug.LogWarning($"{nameof(YooAssets)} is initialized !");
return;
}
if (_isInitialize == false) if (_isInitialize == false)
{ {