protected override void OnCallDestroy() { UserInterfacePortManager.ReleaseUtils.Release(ref this.mTexture_MainBase, false); UserInterfacePortManager.ReleaseUtils.Release(ref this.mTexture_SubBase, false); this.mUIPortMenuButtonKeyMap_SubMenu = null; this.mOnLongPressListener = null; }
protected override void OnCallDestroy() { if (this.mUIPortMenuButtonKeyMap_SubMenu != null) { this.mUIPortMenuButtonKeyMap_SubMenu.Release(); } this.mUIPortMenuButtonKeyMap_SubMenu = null; }
private void OnDestroy() { UserInterfacePortManager.ReleaseUtils.Release(ref this.mWidgetThis); UserInterfacePortManager.ReleaseUtils.Release(ref this.mButton_Action); UserInterfacePortManager.ReleaseUtils.Release(ref this.mTexture_Base, false); UserInterfacePortManager.ReleaseUtils.Release(ref this.mTexture_Glow_Back, false); UserInterfacePortManager.ReleaseUtils.Release(ref this.mTexture_Glow_Front, false); UserInterfacePortManager.ReleaseUtils.Release(ref this.mTexture_Front, false); UserInterfacePortManager.ReleaseUtils.Release(ref this.mTexture_TextShadow, false); UserInterfacePortManager.ReleaseUtils.Release(ref this.mTexture_Text, false); if (this.mUIPortMenuButtonKeyMap != null) { this.mUIPortMenuButtonKeyMap.Release(); } this.mUIPortMenuButtonKeyMap = null; this.OnCallDestroy(); }