去掉大部分 调试信息
This commit is contained in:
@@ -15,7 +15,7 @@ export class HCardUICom extends Component {
|
||||
slot:number=0
|
||||
|
||||
start() {
|
||||
console.log("[HCardUICom]:start")
|
||||
// console.log("[HCardUICom]:start")
|
||||
}
|
||||
protected onLoad(): void {
|
||||
oops.message.on(GameEvent.UpdateHero,this.to_update_hero,this)
|
||||
@@ -25,14 +25,14 @@ export class HCardUICom extends Component {
|
||||
}
|
||||
to_update_hero(event:any,args:any){
|
||||
if(args.uuid==this.h_uuid){
|
||||
console.log("[HCardUICom]:是我诶:",HeroInfo[args.uuid].name+args.uuid)
|
||||
// console.log("[HCardUICom]:是我诶:",HeroInfo[args.uuid].name+args.uuid)
|
||||
this.update_data(args.uuid,{type:this.type})
|
||||
}
|
||||
}
|
||||
update_data(uuid:number,args:any){
|
||||
this.type=args.type
|
||||
if(args.slot) this.slot=args.slot
|
||||
console.log("[HCardUICom]:update_data",uuid,this.type,this.slot,args)
|
||||
// console.log("[HCardUICom]:update_data",uuid,this.type,this.slot,args)
|
||||
this.h_uuid=uuid
|
||||
this.node.getChildByName("in_fight").active=this.check_in_fight()
|
||||
let hero_data = HeroInfo[uuid]
|
||||
|
||||
Reference in New Issue
Block a user