怪物 不变,添加boss
This commit is contained in:
@@ -47,16 +47,8 @@ export class BuffComp extends Component {
|
||||
this.HeroView=this.node.getComponent(HeroViewComp)
|
||||
this.FIGHTCON=this.node.parent.getComponent(FightConComp)
|
||||
this.top_node = this.node.getChildByName("top");
|
||||
this.top_node.getChildByName("lv").active=false
|
||||
// this.top_node.getChildByName("hp").active=(this.node.getComponent(HeroViewComp).fac == 1 ? true : false)
|
||||
this.top_node.getChildByName("sboss").active= this.HeroView.is_boss
|
||||
|
||||
this.top_node.getChildByName("lv").getChildByName("lv").getComponent(Label)!.string = this.HeroView.lv.toFixed(0)
|
||||
this.top_node.getChildByName("ihp").getChildByName("num").getComponent(Label)!.string = this.HeroView.hp.toFixed(0)
|
||||
this.top_node.getChildByName("iap").getChildByName("num").getComponent(Label)!.string = this.HeroView.ap.toFixed(0)
|
||||
this.top_node.getChildByName("ihp").active=false
|
||||
this.top_node.getChildByName("iap").active=false
|
||||
|
||||
this.vmdata_update()
|
||||
}
|
||||
to_update_vmdata(){
|
||||
@@ -140,8 +132,7 @@ export class BuffComp extends Component {
|
||||
|
||||
|
||||
update_info_lv(){
|
||||
let lv_node = this.top_node.getChildByName("lv");
|
||||
lv_node.getChildByName("lv").getComponent(Label)!.string = this.HeroView.lv.toFixed(0)
|
||||
|
||||
}
|
||||
|
||||
show_wind(t:number=1){
|
||||
|
||||
@@ -179,8 +179,7 @@ export class HeroViewComp extends CCComp {
|
||||
|
||||
|
||||
hide_info(){
|
||||
this.node.getChildByName("top").getChildByName("ihp").active = false;
|
||||
this.node.getChildByName("top").getChildByName("iap").active = false;
|
||||
|
||||
}
|
||||
//状态切换
|
||||
status_change(type:string){
|
||||
|
||||
Reference in New Issue
Block a user