public void RemoveAsset(PanelAsset asset) { if (asset == null) { return; } mAssets.Remove(asset); asset.Release(); }
public static void ReleasePanels() { PanelManager inst = Instance; if (inst == null) { return; } for (int i = 0; i < inst.mAssets.Count; i++) { PanelAsset asset = inst.mAssets[i]; asset.Release(); } }
public void RemoveAsset(PanelAsset asset) { if (asset == null || !mAssets.Contains(asset)) { return; } ClearPanelForAsset(asset, mClosing); ClearPanelForAsset(asset, mDialogs); ClearPanelForAsset(asset, mStatus); ClearPanelForAsset(asset, mPanels); mAssets.Remove(asset); asset.Release(); mFindFocusWindow = true; }