去掉 HeroSelectEnd 等 无用 信号

This commit is contained in:
2025-06-17 08:55:03 +08:00
parent 3ad905cd59
commit 5af0a314a6
3 changed files with 0 additions and 6 deletions

View File

@@ -15,7 +15,6 @@ export enum GameEvent {
CastSkill = "CastSkill",
CardsClose = "CardsClose",
CardRefresh = "CardRefresh",
CardRefreshEnd = "CardRefreshEnd",
UseCard = "UseCard",
UseHeroCard = "UseHeroCard",
UseSkillCard = "UseSkillCard",
@@ -27,7 +26,6 @@ export enum GameEvent {
HeroSkillSelect = "HeroSkillSelect",
HeroSkillSelectEnd = "HeroSkillSelectEnd",
HeroSelect = "HeroSelect",
HeroSelectEnd = "HeroSelectEnd",
FightStart = "FightStart",
FightPause = "FightPause",
FightResume = "FightResume",

View File

@@ -34,8 +34,6 @@ export class CardsCompComp extends CCComp {
this.on(GameEvent.CardRefresh, this.addToQueue, this);
this.on(GameEvent.HeroSkillSelectEnd, this.close_cards, this);
this.on(GameEvent.HeroSelectEnd, this.close_cards, this);
this.on(GameEvent.CardRefreshEnd, this.close_cards, this);
this.on(GameEvent.CardsClose, this.close_cards, this);
this.card1=this.node.getChildByName("card1")

View File

@@ -56,7 +56,6 @@ export class MissionHeroCompComp extends CCComp {
let scale = 1
let pos:Vec3 = HeroPos[freind_pos].pos;
hero.load(pos,scale,args.uuid,info,freind_pos);
oops.message.dispatchEvent(GameEvent.HeroSelectEnd)
console.log("call_friend",hero)
}
@@ -133,7 +132,6 @@ export class MissionHeroCompComp extends CCComp {
let scale = 1
let pos:Vec3 = HeroPos[freind_pos].pos;
hero.load(pos,scale,uuid,info,freind_pos);
oops.message.dispatchEvent(GameEvent.HeroSelectEnd)
this.current_hero_uuid=0
}