Update extension code

修复了在未初始化之前查看是否初始化报空异常的错误。
pull/51/head
hevinci 2022-10-11 11:08:22 +08:00
parent 82631fb336
commit ef1acdc3d1
1 changed files with 6 additions and 1 deletions

View File

@ -15,7 +15,12 @@ namespace YooAsset
/// </summary>
public static bool IsInitialized
{
get { return _mainPackage.IsInitialized; }
get
{
if (_mainPackage == null)
return false;
return _mainPackage.IsInitialized;
}
}
/// <summary>