mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-26 02:30:18 +00:00
Update extension code
修复了在未初始化之前查看是否初始化报空异常的错误。
This commit is contained in:
@@ -15,7 +15,12 @@ namespace YooAsset
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static bool IsInitialized
|
public static bool IsInitialized
|
||||||
{
|
{
|
||||||
get { return _mainPackage.IsInitialized; }
|
get
|
||||||
|
{
|
||||||
|
if (_mainPackage == null)
|
||||||
|
return false;
|
||||||
|
return _mainPackage.IsInitialized;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user