local ThrowGiftPanel = class("ThrowGiftPanel", BasePanel) ThrowGiftPanel._sUIResRootPath = "UI_Activity/" local GamepadUIManager = require("GameCore.Module.GamepadUIManager") ThrowGiftPanel._tbDefine = { { sPrefabPath = "_400005/ThrowGiftsPanel.prefab", sCtrlName = "Game.UI.Activity.ThrowGifts.ThrowGiftCtrl" } } function ThrowGiftPanel:Awake() self.nLevelPanelId = PanelId.ThrowGiftLevelPanel self.sGamepadPanelName = "ThrowGiftPanel" self.nTransition = 37 self._rootPath = "UI_Activity/_400005/GoalPerfab/Goal%s.prefab" GamepadUIManager.EnterAdventure(true) GamepadUIManager.EnableGamepadUI("ThrowGiftPanel", {}, nil, true) end function ThrowGiftPanel:OnEnable() end function ThrowGiftPanel:OnAfterEnter() end function ThrowGiftPanel:OnDisable() end function ThrowGiftPanel:OnDestroy() GamepadUIManager.DisableGamepadUI("ThrowGiftPanel") GamepadUIManager.QuitAdventure() end function ThrowGiftPanel:OnRelease() end return ThrowGiftPanel