local UIGoldenHeroStoryEndingShow = require("View/GoldenHero/GoldenHeroStory/UIGoldenHeroStoryEndingShow") local UISuperGoldStoryEndingShow = UIViewClass(UIGoldenHeroStoryEndingShow) function UISuperGoldStoryEndingShow:CheckFuncActive() self:RegistSystemEvent(EventID.UI_OperationActivity_CloseView, self.OnCloseActivitySelf) end function UISuperGoldStoryEndingShow:OnCloseActivitySelf(viewClassPath, activityId) if viewClassPath == self.__viewClassPath then if self.activityId and activityId == self.activityId then self:CloseView() end end end return UISuperGoldStoryEndingShow