From 1fe4ffba72f56ccc6a89d1896142425c666887d4 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 27 Jan 2021 14:15:08 +0800 Subject: =?UTF-8?q?+UILib=20=E5=8F=8D=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Client/Assets/Scripts/XMainClient/XObject.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Client/Assets/Scripts/XMainClient/XObject.cs') 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.singleton.RemoveComponent(xcomponent); + XSingleton.singleton.RemoveComponent(xcomponent); // 回收组件 } ListPool.Release(this.internalIterator); this.internalIterator = null; -- cgit v1.1-26-g67d0