import { _decorator, Node } from 'cc'; import { Auto_buyItemBox } from './Auto_buyItemBox'; const { ccclass } = _decorator; /** @deprecated 商店购买弹窗已移除 */ @ccclass('UIbuyItemBox') export class UIbuyItemBox extends Auto_buyItemBox { onEnable(): void { super.onEnable(); this.ui_bgMask?.on(Node.EventType.TOUCH_END, this.click_bgMask, this); } onDisable(): void { super.onDisable(); this.ui_bgMask?.off(Node.EventType.TOUCH_END, this.click_bgMask, this); } click_bgMask(): void { this.close(2); } onInit(): void { } click_btnClose(): void { this.close(2); } click_btnBuy(): void { this.close(2); } }