summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XObject.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-27 14:15:08 +0800
committerchai <chaifix@163.com>2021-01-27 14:15:08 +0800
commit1fe4ffba72f56ccc6a89d1896142425c666887d4 (patch)
treee469b6fea9454938d3a26444982be4b25de37103 /Client/Assets/Scripts/XMainClient/XObject.cs
parent310103405588040c7bc777c802273556343cae92 (diff)
+UILib 反编译
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XObject.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/XObject.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Client/Assets/Scripts/XMainClient/XObject.cs b/Client/Assets/Scripts/XMainClient/XObject.cs
index 4dfc105f..b82ac51c 100644
--- a/Client/Assets/Scripts/XMainClient/XObject.cs
+++ b/Client/Assets/Scripts/XMainClient/XObject.cs
@@ -61,6 +61,7 @@ namespace XMainClient
return true;
}
+ //销毁、回收对象
public virtual void Uninitilize()
{
bool flag = this.internalIterator != null;
@@ -72,7 +73,7 @@ namespace XMainClient
xcomponent.OnDetachFromHost();
this.OnComponentDetached(xcomponent);
this.Components.RemoveAt(i);
- XSingleton<XComponentMgr>.singleton.RemoveComponent(xcomponent);
+ XSingleton<XComponentMgr>.singleton.RemoveComponent(xcomponent); // 回收组件
}
ListPool<XComponent>.Release(this.internalIterator);
this.internalIterator = null;