死亡动画bug修复

This commit is contained in:
2025-01-11 11:43:23 +08:00
parent 3bb8b689a6
commit 8d0c6e24be
5 changed files with 940 additions and 940 deletions

View File

@@ -199,7 +199,7 @@ export class BuffComp extends Component {
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
let pos = v3(this.node.position.x,this.node.position.y+30,this.node.position.z);
node.parent = this.node;
node.parent = this.node.parent;
node.setPosition(pos);
}
in_atked() {
@@ -254,7 +254,7 @@ export class BuffComp extends Component {
tooltip(type:number=1,value:string="",s_uuid:number=1001,y:number=90){
// console.log("tooltip",type);
let tip =ecs.getEntity<Tooltip>(Tooltip);
let pos = v3(0,0);
let pos = v3(0,10);
pos.y=pos.y+y;
tip.load(pos,type,value,s_uuid,this.node);
}