去掉大部分 调试信息

This commit is contained in:
2025-08-21 14:33:42 +08:00
parent 92faa0fe09
commit 213149881c
27 changed files with 164 additions and 164 deletions

View File

@@ -16,7 +16,7 @@ export class HInfoComp extends Component {
}
onAdded(args: any) {
console.log("[HInfoComp]:onAdded",args)
// console.log("[HInfoComp]:onAdded",args)
this.update_data(args)
}
update(deltaTime: number) {
@@ -26,7 +26,7 @@ export class HInfoComp extends Component {
this.h_uuid=uuid
let hero_data = HeroInfo[uuid]
console.log("[HInfoComp]:update_data",uuid,hero_data,this.node)
// console.log("[HInfoComp]:update_data",uuid,hero_data,this.node)
let lv=smc.heros[uuid]?.lv??1
let anm_path=hero_data.path
resources.load("game/heros/hero/"+anm_path+"/idle", AnimationClip, (err, clip) => {
@@ -63,7 +63,7 @@ export class HInfoComp extends Component {
this.node.getChildByName("lock").active=lv == 0
this.node.getChildByName("unLock").active=lv == 0
let need_item=unlockHeroCost[HeroInfo[this.h_uuid].quality]
console.log("[HInfoComp]:show_lock item:item_uuid:hero_uuid:hero_data",Items[need_item.i_uuid],need_item.i_uuid,this.h_uuid,HeroInfo[this.h_uuid])
// console.log("[HInfoComp]:show_lock item:item_uuid:hero_uuid:hero_data",Items[need_item.i_uuid],need_item.i_uuid,this.h_uuid,HeroInfo[this.h_uuid])
this.node.getChildByName("unLockNeed").getChildByName("need").getChildByName("has").getComponent(Label).string=smc.items[need_item.i_uuid]??0
this.node.getChildByName("unLockNeed").getChildByName("need").getChildByName("need").getComponent(Label).string=NumberFormatter.formatNumber(need_item.num)