Example #1
0
 protected override void OnCallDestroy()
 {
     if (mUIPortMenuButtonKeyMap_SubMenu != null)
     {
         mUIPortMenuButtonKeyMap_SubMenu.Release();
     }
     mUIPortMenuButtonKeyMap_SubMenu = null;
 }
Example #2
0
 private void OnDestroy()
 {
     UserInterfacePortManager.ReleaseUtils.Release(ref mWidgetThis);
     UserInterfacePortManager.ReleaseUtils.Release(ref mButton_Action);
     UserInterfacePortManager.ReleaseUtils.Release(ref mTexture_Base);
     UserInterfacePortManager.ReleaseUtils.Release(ref mTexture_Glow_Back);
     UserInterfacePortManager.ReleaseUtils.Release(ref mTexture_Glow_Front);
     UserInterfacePortManager.ReleaseUtils.Release(ref mTexture_Front);
     UserInterfacePortManager.ReleaseUtils.Release(ref mTexture_TextShadow);
     UserInterfacePortManager.ReleaseUtils.Release(ref mTexture_Text);
     if (mUIPortMenuButtonKeyMap != null)
     {
         mUIPortMenuButtonKeyMap.Release();
     }
     mUIPortMenuButtonKeyMap = null;
     OnCallDestroy();
 }