public void destroy() { if (mScript != null) { mLayoutScriptCallback?.Invoke(mScript, false); mScript.destroy(); mScript = null; } txUIObject.destroyWindow(mRoot, true); mRoot = null; mResourceManager.unload(ref mPrefab); }
public void destroy() { if (mLayoutPanel != null) { mLayoutPanel.destroy(); mLayoutPanel = null; } if (mLayoutCanvas != null) { mLayoutCanvas.destroy(); mLayoutCanvas = null; } if (mScript != null) { mScript.destroy(); mScript = null; } }