掉血独立
This commit is contained in:
@@ -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)!;
|
||||
|
||||
Reference in New Issue
Block a user