日志控制

This commit is contained in:
chen wei bo
2025-09-21 20:36:25 +08:00
parent e78f6b937e
commit 93bfe3174f
23 changed files with 91 additions and 81 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import { _decorator, Component, Label, Node } from "cc";
import LanguageUtils, { LanguageType } from "./LanguageUtils";
import { logger } from "db://assets/Scripts/Main/Common/Logger";
const { ccclass, property, requireComponent } = _decorator;
@@ -30,7 +31,7 @@ export class LanguageLabel extends Component {
onLoad() {
this.label = this.getComponent(Label);
if (!this.label) {
console.error("LanguageLabel: Label component not found!");
logger.error("LanguageLabel: Label component not found!");
return;
}