死亡动画bug修复
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user