技能清理技能完成, 完全使用帧动画

This commit is contained in:
2025-08-16 14:21:05 +08:00
parent 364371d952
commit 0d3f789bdc
310 changed files with 12452 additions and 28370 deletions

View File

@@ -57,10 +57,7 @@ export class BuffComp extends Component {
update(deltaTime: number) {
if(smc.mission.pause) return
if(this.wind_cd > 0 ) this.wind_cd -= deltaTime;
if(this.wind_cd <= 0 && this.node.getChildByName("wind").active){
this.node.getChildByName("wind").active = false;
}
// if(this.timer.update(deltaTime)){
// this.timer.reset()
// this.show_buff(this.buff_keys[this.key_index])
@@ -85,7 +82,7 @@ export class BuffComp extends Component {
show_wind(t:number=1){
this.wind_cd = t;
this.node.getChildByName("wind").active = true;
}
@@ -104,11 +101,18 @@ export class BuffComp extends Component {
}
lv_up(){
var path = "game/skills/lvup";
var path = "game/skills/buff_lvup";
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
node.parent = this.node;
}
ap_up(){
var path = "game/skills/buff_apup";
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
node.parent = this.node;
}
show_do_buff(name:string){
var path = "game/skills/"+name;
var prefab: Prefab = oops.res.get(path, Prefab)!;
@@ -135,7 +139,7 @@ export class BuffComp extends Component {
node.parent = this.node.parent;
}
in_iced(t:number=1,ap:number=0) {
var path = "game/skills/iced";
var path = "game/skills/buff_iced";
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
node.getComponent(timedCom).time = t;
@@ -143,15 +147,15 @@ export class BuffComp extends Component {
node.parent = this.node;
}
in_fired(t:number=1,ap:number=0) {
var path = "game/skills/fired";
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
node.getComponent(timedCom).time = t;
node.getComponent(timedCom).ap = ap;
node.parent = this.node;
// var path = "game/skills/fired";
// var prefab: Prefab = oops.res.get(path, Prefab)!;
// var node = instantiate(prefab);
// node.getComponent(timedCom).time = t;
// node.getComponent(timedCom).ap = ap;
// node.parent = this.node;
}
in_yun(t:number=1,ap:number=0) {
var path = "game/skills/yun";
var path = "game/skills/buff_yun";
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
let height=this.node.getComponent(UITransform).height

View File

@@ -594,10 +594,10 @@ export class HeroViewComp extends CCComp {
ex_show(text:string){
switch(text){
case "blue":
this.BUFFCOMP.max_show("max_blue")
this.BUFFCOMP.max_show("mr_blue")
break
case "red":
this.BUFFCOMP.max_show("max_red")
this.BUFFCOMP.max_show("mr_red")
break
}
}