去掉英雄health组件,采用预制体

This commit is contained in:
2025-01-17 20:01:05 +08:00
parent 7a5c3d686e
commit dba96359ab
63 changed files with 3398 additions and 12461 deletions

View File

@@ -174,7 +174,10 @@ export class BuffComp extends Component {
tip.load(pos,type,value,s_uuid,this.node);
}
heathed(){
this.node.getChildByName("heathed").active=true
var path = "game/skills/heathed";
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
node.parent = this.node;
}
}