refactor: 移除调试日志并统一使用日志工具
- 删除多个文件中的 console.log/console.warn/console.error 调试输出 - 将日志输出统一替换为 mLogger 工具,支持调试模式控制 - 清理注释掉的调试代码和空方法体
This commit is contained in:
@@ -34,7 +34,6 @@ export class MissionHeroCompComp extends CCComp {
|
||||
// this.test_call()
|
||||
}
|
||||
clear_heros(){
|
||||
// console.log("[MissionHeroComp]: FightEnd clear heros")
|
||||
|
||||
}
|
||||
fight_ready(){
|
||||
@@ -49,11 +48,9 @@ export class MissionHeroCompComp extends CCComp {
|
||||
// this.current_hero_num=-1
|
||||
// this.current_hero_uuid=0
|
||||
smc.vmdata.mission_data.hero_num=0
|
||||
// console.log("[MissionHeroComp]:fight_ready",smc.fight_heros,Object.keys(smc.fight_heros).length)
|
||||
this.addHero(smc.fight_hero,true)
|
||||
// for(let i=0;i<Object.keys(heros).length;i++){
|
||||
// if(heros[i]!=0){
|
||||
// // console.log("[MissionHeroComp]:fight_ready",heros[i])
|
||||
// this.addHero(heros[i],false)
|
||||
// }
|
||||
// }
|
||||
@@ -65,16 +62,13 @@ export class MissionHeroCompComp extends CCComp {
|
||||
}
|
||||
|
||||
private zhao_huan(event: string, args: any){
|
||||
// console.log("[MissionHeroComp]:zhaohuan",args)
|
||||
this.addHero(args.uuid)
|
||||
}
|
||||
private call_friend(event: string, args: any){
|
||||
// console.log("[MissionHeroComp]:call_friend",args)
|
||||
this.addHero(args.uuid,false,true)
|
||||
}
|
||||
/** 添加英雄 */
|
||||
private addHero(uuid:number=1001,is_master:boolean=false,is_friend:boolean=false) {
|
||||
// console.log("[MissionHeroComp]:addHero",uuid,is_zhaohuan)
|
||||
let hero_pos=0
|
||||
let hero = ecs.getEntity<Hero>(Hero);
|
||||
let scale = 1
|
||||
|
||||
Reference in New Issue
Block a user