提交 fb95de24 编写于 作者: T tanghai

修复一个释放空GameObject的bug

上级 a17a4c45
...@@ -134,7 +134,10 @@ namespace ETHotfix ...@@ -134,7 +134,10 @@ namespace ETHotfix
else else
{ {
#if !SERVER #if !SERVER
UnityEngine.Object.Destroy(this.GameObject); if (this.GameObject != null)
{
UnityEngine.Object.Destroy(this.GameObject);
}
#endif #endif
} }
} }
......
fileFormatVersion: 2
guid: 43c537b5f05843f4bbd7e6255e1a040a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
...@@ -138,7 +138,11 @@ namespace ETModel ...@@ -138,7 +138,11 @@ namespace ETModel
else else
{ {
#if !SERVER #if !SERVER
UnityEngine.Object.Destroy(this.GameObject);
if (this.GameObject != null)
{
UnityEngine.Object.Destroy(this.GameObject);
}
#endif #endif
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册