/** * @file MSkillBoxComp.ts * @description 技能卡牌选择器 * * 职责: * * 关键设计: * * 依赖: */ import { mLogger } from "../common/Logger"; import { _decorator, instantiate, Label, Node, NodeEventType, Prefab, SpriteAtlas, Tween, tween, Vec3, Widget } from "cc"; import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp"; const { ccclass, property } = _decorator; /** * MSkillBoxComp —— 技能卡牌系统核心控制器 * * 管理 3 个卡牌槽位的抽卡分发、卡池升级、金币费用、 * 在 1,5,10,15,20 波次弹出技能卡牌三选一 */ @ccclass('MSkillBoxComp') @ecs.register('MissionCard', false) export class MSkillBoxComp extends CCComp { /** 是否启用调试日志 */ private debugMode: boolean = false; // ======================== 编辑器绑定节点 ======================== /** 卡牌槽位 1 节点 */ @property(Node) card1: Node = null! /** 卡牌槽位 2 节点 */ @property(Node) card2: Node = null! /** 卡牌槽位 3 节点 */ @property(Node) card3: Node = null! /** 刷新按钮 */ @property(Node) refreshBtn: Node = null! /** 看广告刷新按钮 */ @property(Node) adRefreshBtn: Node = null! /** * 组件加载: */ onLoad() { } onAdded(args: any) { } onDestroy() { } init() { } update(dt: number) { } private bindEvents() { } reset() { } }