refactor(map): remove unused NewWave event listener and handler
删除了废弃的 NewWave 事件监听和对应的 onNewWave 处理函数,清理冗余代码。
This commit is contained in:
@@ -262,7 +262,7 @@ export class MissionCardComp extends CCComp {
|
||||
|
||||
/**
|
||||
* 绑定所有事件监听:
|
||||
* - 节点级事件:MissionStart / MissionEnd / NewWave / FightStart
|
||||
* - 节点级事件:MissionStart / MissionEnd / FightStart
|
||||
* - 全局消息:CoinAdd / MasterCalled / HeroDead / UseHeroCard / UseSpecialCard
|
||||
* - 按钮触控:抽卡(cards_chou)
|
||||
*/
|
||||
@@ -270,7 +270,6 @@ export class MissionCardComp extends CCComp {
|
||||
/** 生命周期事件(节点级) */
|
||||
this.on(GameEvent.MissionStart, this.onMissionStart, this);
|
||||
this.on(GameEvent.MissionEnd, this.onMissionEnd, this);
|
||||
this.on(GameEvent.NewWave, this.onNewWave, this);
|
||||
this.on(GameEvent.FightStart, this.onFightStart, this);
|
||||
this.on("PhasePrepareStart", this.onPhasePrepareStart, this);
|
||||
|
||||
@@ -372,15 +371,6 @@ export class MissionCardComp extends CCComp {
|
||||
this.updateHeroNumUI(true, true);
|
||||
}
|
||||
|
||||
/** 新一波:展开面板 → 刷新费用 UI → 重新抽卡分发 */
|
||||
private onNewWave() {
|
||||
this.enterPreparePhase();
|
||||
this.updateCoinAndCostUI();
|
||||
this.layoutCardSlots();
|
||||
const cards = this.buildDrawCards();
|
||||
this.dispatchCardsToSlots(cards);
|
||||
}
|
||||
|
||||
/**
|
||||
* 技能卡入场动画:每个卡槽从场景基准位置下方 80px 处升起,
|
||||
* 终止位置 = 场景编辑器位置(保持初始不做位移的约束),
|
||||
|
||||
Reference in New Issue
Block a user