mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-19 06:40:21 +00:00
Update extension code
修复了在未初始化之前查看是否初始化报空异常的错误。
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user