refactor: 移除调试日志并统一使用日志工具
- 删除多个文件中的 console.log/console.warn/console.error 调试输出 - 将日志输出统一替换为 mLogger 工具,支持调试模式控制 - 清理注释掉的调试代码和空方法体
This commit is contained in:
@@ -36,18 +36,15 @@ export class HeroSpine extends Component {
|
||||
|
||||
}
|
||||
idle(){
|
||||
// console.log("change to idle",this.status);
|
||||
// console.log("do Idle");
|
||||
|
||||
if(this.status=="idle") return
|
||||
this.status="idle"
|
||||
this.anm.idle()
|
||||
}
|
||||
atk() {
|
||||
// console.log("do atk");
|
||||
this.anm.atk()
|
||||
}
|
||||
max(){
|
||||
// console.log("do max");
|
||||
this.anm.max()
|
||||
}
|
||||
play(name:string){
|
||||
@@ -70,7 +67,6 @@ export class HeroSpine extends Component {
|
||||
this.anm.atked()
|
||||
}
|
||||
dead(){
|
||||
// console.log("do dead");
|
||||
this.anm.dead()
|
||||
}
|
||||
do_buff(){
|
||||
@@ -80,7 +76,6 @@ export class HeroSpine extends Component {
|
||||
this.anm.buff()
|
||||
}
|
||||
move(){
|
||||
// console.log("change to move",this.status);
|
||||
if(this.status=="move") return
|
||||
this.status="move"
|
||||
this.anm.move()
|
||||
|
||||
Reference in New Issue
Block a user