去掉 HeroSelectEnd 等 无用 信号
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user