debuff 灼烧完成

This commit is contained in:
2025-01-05 15:59:40 +08:00
parent 511459c66c
commit 064c7f057f
26 changed files with 3561 additions and 2463 deletions

View File

@@ -206,20 +206,30 @@ export class BuffComp extends Component {
let pos =v3(15,30);
node.setPosition(pos)
node.parent = this.node;
}
in_iced(t:number=1) {
}
in_iced(t:number=1,ap:number=0) {
var path = "game/skills/iced";
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) {
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;
}
in_yun(t:number=1,ap:number=0) {
var path = "game/skills/yun";
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
node.setPosition(v3(0,90));
node.getComponent(timedCom).time = t;
node.getComponent(timedCom).ap = ap;
node.parent = this.node;
}
to_speek(words:string,time:number=0.5){