修复bug和ui调整,下一步,达到特定等级才激活技能
This commit is contained in:
@@ -30,13 +30,14 @@ export class SkillConComp extends CCComp {
|
||||
|
||||
|
||||
init(): void {
|
||||
oops.message.on(GameEvent.FightEnd, this.clear_timer, this);
|
||||
this.on(GameEvent.FightEnd, this.clear_timer, this);
|
||||
|
||||
}
|
||||
onLoad(){
|
||||
this.HeroView=this.node.getComponent(HeroViewComp)
|
||||
// //console.log(this.HeroView.uuid+"=>"+this.HeroView.hero_name+"=> SkillConComp onLoad")
|
||||
// //console.log(this.HeroView.uid+"=>"+this.HeroView.hero_name+"=> SkillConComp onLoad")
|
||||
this.on(GameEvent.CastHeroSkill,this.cast_master_skill,this)
|
||||
oops.message.on(GameEvent.MaxSkill,this.use_max_skill,this)
|
||||
this.on(GameEvent.MaxSkill,this.use_max_skill,this)
|
||||
|
||||
}
|
||||
start() {
|
||||
@@ -279,7 +280,8 @@ export class SkillConComp extends CCComp {
|
||||
|
||||
|
||||
public clear_timer() {
|
||||
// //console.log("clear_timer");
|
||||
// console.log("[SkillConComp]:clear_timer",this.HeroView);
|
||||
|
||||
Object.values(this._timers).forEach(clearTimeout);
|
||||
}
|
||||
count_cd(cd:number,view:HeroViewComp){
|
||||
|
||||
Reference in New Issue
Block a user