去掉大部分 调试信息

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

@@ -32,7 +32,7 @@ export class MissionHeroCompComp extends CCComp {
// this.test_call()
}
clear_heros(){
console.log("[MissionHeroComp]: FightEnd clear heros")
// console.log("[MissionHeroComp]: FightEnd clear heros")
}
fight_ready(){
@@ -47,11 +47,11 @@ 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)
// console.log("[MissionHeroComp]:fight_ready",smc.fight_heros,Object.keys(smc.fight_heros).length)
let heros:any = smc.fight_heros
for(let i=0;i<Object.keys(heros).length;i++){
if(heros[i]!=0){
console.log("[MissionHeroComp]:fight_ready",heros[i])
// console.log("[MissionHeroComp]:fight_ready",heros[i])
this.addHero(heros[i],false)
}
}
@@ -65,7 +65,7 @@ export class MissionHeroCompComp extends CCComp {
private zhao_huan(event: string, args: any){
console.log("[MissionHeroComp]:zhaohuan",args)
// console.log("[MissionHeroComp]:zhaohuan",args)
this.addHero(args.uuid,false)
}
@@ -73,7 +73,7 @@ export class MissionHeroCompComp extends CCComp {
call_hero(event: string, args: any){
console.log("[MissionHeroComp]:call_hero",this.heros,this.current_hero_num,args)
// console.log("[MissionHeroComp]:call_hero",this.heros,this.current_hero_num,args)
// 尝试升级现有英雄
if (this.tryUpgradeExistingHero(args.uuid)) {
@@ -92,7 +92,7 @@ export class MissionHeroCompComp extends CCComp {
*/
private tryUpgradeExistingHero(uuid: number): boolean {
for (let i = 0; i < this.heros.length; i++) {
console.log("[MissionHeroComp]:tryUpgradeExistingHero",this.heros,i,uuid)
// console.log("[MissionHeroComp]:tryUpgradeExistingHero",this.heros,i,uuid)
if (this.heros[i].uuid === uuid) {
this.heros[i].count++
smc.vmdata[`hero${i+1}`].count=this.heros[i].count
@@ -119,7 +119,7 @@ export class MissionHeroCompComp extends CCComp {
/** 添加英雄 */
private addHero(uuid:number=1001,is_zhaohuan:boolean=false) {
console.log("[MissionHeroComp]:addHero",uuid,is_zhaohuan)
// console.log("[MissionHeroComp]:addHero",uuid,is_zhaohuan)
let hero_pos=0
let hero = ecs.getEntity<Hero>(Hero);
let scale = 1