掉血独立

This commit is contained in:
2025-07-31 15:46:25 +08:00
parent db2acbf52e
commit d56b4293d7
2 changed files with 9 additions and 2 deletions

View File

@@ -225,6 +225,13 @@ export class BuffComp extends Component {
pos.y=pos.y+y;
tip.load(pos,type,value,s_uuid,this.node);
}
hp_tip(type:number=1,value:string="",s_uuid:number=1001,y:number=90){
let tip =ecs.getEntity<Tooltip>(Tooltip);
let x=this.node.position.x;
let ny=this.node.getComponent(UITransform).height-20;
let pos = v3(x,ny,0);
tip.load(pos,type,value,s_uuid,this.node.parent);
}
heathed(){
var path = "game/skills/heathed";
var prefab: Prefab = oops.res.get(path, Prefab)!;