去除max动画,用特效替代大招
This commit is contained in:
@@ -223,13 +223,9 @@ export class HeroViewComp extends CCComp {
|
||||
|
||||
|
||||
change_anm(){
|
||||
if (this.anm_name == "max"){
|
||||
this.as.max()
|
||||
this.anm_name = "idle"
|
||||
}
|
||||
if (this.anm_name == "atk") {
|
||||
this.as.atk()
|
||||
this.anm_name = "max"
|
||||
this.anm_name = "move"
|
||||
}
|
||||
if (this.anm_name == "move") {
|
||||
this.as.move()
|
||||
@@ -419,6 +415,10 @@ export class HeroViewComp extends CCComp {
|
||||
}
|
||||
//使用max_skill
|
||||
handle_skill(skill:number){
|
||||
this.node.getChildByName("max").active=true
|
||||
this.scheduleOnce(()=>{
|
||||
this.node.getChildByName("max").active=false
|
||||
},0.8)
|
||||
switch (smc.skills[skill].tg) {
|
||||
case 0: //自己
|
||||
this.to_add_buff(this.node.getComponent(HeroViewComp),skill)
|
||||
@@ -464,7 +464,7 @@ export class HeroViewComp extends CCComp {
|
||||
console.log("cd:"+this.cd);
|
||||
this.as.atk();
|
||||
this.scheduleOnce(()=>{
|
||||
this.handle_skill(this.sk1)
|
||||
this.shoot_enemy(this.sk1)
|
||||
},0.4)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user