提交 5bf97d77 编写于 作者: T tanghai

修复ResourceComponent unload判断,判断AssetBundle==null的情况不能使用.?,因为unity的Object判断null是通过重载==操作符作了自己的一重判断

上级 0f232c19
......@@ -3,7 +3,6 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
......@@ -50,7 +49,10 @@ namespace ETModel
//Log.Debug($"desdroy assetbundle: {this.Name}");
this.AssetBundle?.Unload(true);
if (this.AssetBundle != null)
{
this.AssetBundle.Unload(true);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册