public override void Release() { base.Release(); EventDispatcher.RemoveEventListener <int>(MenuUIDict.MenuUIEvent.PACKAGEGRIDUP, OnInventoryGridUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGESORTUP, OnInventorySortUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGERESOLVEUP, OnInventoryDecomposeUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGEEQUIPINFODETAILPUTUPUP, OnInventoryEquipmentDetailEquipUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGEEQUIPINFODETAILSAILUP, OnInventoryEquipDetailSailUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGEEQUIPINFODETAILSHOWUPUP, OnInventoryEquipDetailShowUpUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGEEQUIPINFOCLOSEUP, OnPackageEquipDetailCloseUp); EventDispatcher.RemoveEventListener <int>(MenuUIDict.MenuUIEvent.PLAYERUIEQUPMENTGRIDUP, OnEquipmentGridUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGEICONUP, OnPackageIconUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PLAYERICONUP, OnPlayerIconUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.SETTINGSICONUP, OnSettingsIconUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.SKILLICONUP, OnSkillIconUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.SOCIALICONUP, OnSocialIconUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.TONGICONUP, OnTongIconUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGEEQUIPINFODETAILINSETUP, OnPackageEquipDetailInsetUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGEEQUIPINFODETAILSTRENTHUP, OnPackageEquipDetailStrenthUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGEEQUIPINFODETAILUNLOADUP, OnPackageEquipDetailUnLoadUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.GEMICONUP, OnGemIconUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.NORMALICONUP, OnNormalIconUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.MATERIALICONUP, OnMaterialIconUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGEOUTOFBOUNDSMAXUP, OnPackageOutOfBoundsMaxPage); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGEOUTOFBOUNDSMINUP, OnPackageOutOfBoundsMinPage); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.DIAMONDTIPBUYUP, OnDiamondTipBuyUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.DIAMONDTIPCLOSEUP, OnDiamondTipCloseUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.DIAMONDTIPCOMPOSEUP, OnDiamondTipComposeUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.DIAMONDTIPHISTROYUP, OnDiamondTipHistroyUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.DIAMONDTIPINSETUP, OnDiamondTipInsetUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PLAYERBASICATTRBUTE, OnPlayerBasicAttrUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PLAYERELEMENTATTRBUTE, OnPlayerElementAttrUp); NormalMainUIViewManager.Instance.NORMALMAINUIPLAYERINFOUP -= OnNormalMainUIPlayerInfoUp; m_instance = null; }
public override void Release() { base.Release(); EventDispatcher.RemoveEventListener<int>(MenuUIDict.MenuUIEvent.PACKAGEGRIDUP, OnInventoryGridUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGESORTUP, OnInventorySortUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGERESOLVEUP, OnInventoryDecomposeUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGEEQUIPINFODETAILPUTUPUP, OnInventoryEquipmentDetailEquipUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGEEQUIPINFODETAILSAILUP, OnInventoryEquipDetailSailUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGEEQUIPINFODETAILSHOWUPUP, OnInventoryEquipDetailShowUpUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGEEQUIPINFOCLOSEUP, OnPackageEquipDetailCloseUp); EventDispatcher.RemoveEventListener<int>(MenuUIDict.MenuUIEvent.PLAYERUIEQUPMENTGRIDUP, OnEquipmentGridUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGEICONUP, OnPackageIconUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PLAYERICONUP, OnPlayerIconUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.SETTINGSICONUP, OnSettingsIconUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.SKILLICONUP, OnSkillIconUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.SOCIALICONUP, OnSocialIconUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.TONGICONUP, OnTongIconUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGEEQUIPINFODETAILINSETUP, OnPackageEquipDetailInsetUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGEEQUIPINFODETAILSTRENTHUP, OnPackageEquipDetailStrenthUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGEEQUIPINFODETAILUNLOADUP, OnPackageEquipDetailUnLoadUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.GEMICONUP, OnGemIconUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.NORMALICONUP, OnNormalIconUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.MATERIALICONUP, OnMaterialIconUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGEOUTOFBOUNDSMAXUP, OnPackageOutOfBoundsMaxPage); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PACKAGEOUTOFBOUNDSMINUP, OnPackageOutOfBoundsMinPage); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.DIAMONDTIPBUYUP, OnDiamondTipBuyUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.DIAMONDTIPCLOSEUP, OnDiamondTipCloseUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.DIAMONDTIPCOMPOSEUP, OnDiamondTipComposeUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.DIAMONDTIPHISTROYUP, OnDiamondTipHistroyUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.DIAMONDTIPINSETUP, OnDiamondTipInsetUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PLAYERBASICATTRBUTE, OnPlayerBasicAttrUp); EventDispatcher.RemoveEventListener(MenuUIDict.MenuUIEvent.PLAYERELEMENTATTRBUTE, OnPlayerElementAttrUp); NormalMainUIViewManager.Instance.NORMALMAINUIPLAYERINFOUP -= OnNormalMainUIPlayerInfoUp; m_instance = null; }