去掉英雄health组件,采用预制体
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ export class AnmEndCom extends Component {
|
||||
}
|
||||
}
|
||||
onAnimationFinished(){
|
||||
this.node.active=false
|
||||
this.node.destroy()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user