日志控制
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
view,
|
||||
UIOpacity,
|
||||
} from "cc";
|
||||
import { logger } from "db://assets/Scripts/Main/Common/Logger";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@@ -33,7 +34,7 @@ export class UITransitionHelper {
|
||||
callback?: Function
|
||||
): void {
|
||||
if (!node || !node.isValid) {
|
||||
console.warn("UITransitionHelper: Invalid node for slideInFromRight");
|
||||
logger.warn("UITransitionHelper: Invalid node for slideInFromRight");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -73,7 +74,7 @@ export class UITransitionHelper {
|
||||
callback?: Function
|
||||
): void {
|
||||
if (!node || !node.isValid) {
|
||||
console.warn("UITransitionHelper: Invalid node for slideOutToLeft");
|
||||
logger.warn("UITransitionHelper: Invalid node for slideOutToLeft");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -115,7 +116,7 @@ export class UITransitionHelper {
|
||||
callback?: Function
|
||||
): void {
|
||||
if (!node || !node.isValid) {
|
||||
console.warn("UITransitionHelper: Invalid node for slideInFromLeft");
|
||||
logger.warn("UITransitionHelper: Invalid node for slideInFromLeft");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -155,7 +156,7 @@ export class UITransitionHelper {
|
||||
callback?: Function
|
||||
): void {
|
||||
if (!node || !node.isValid) {
|
||||
console.warn("UITransitionHelper: Invalid node for slideOutToRight");
|
||||
logger.warn("UITransitionHelper: Invalid node for slideOutToRight");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -197,7 +198,7 @@ export class UITransitionHelper {
|
||||
callback?: Function
|
||||
): void {
|
||||
if (!node || !node.isValid) {
|
||||
console.warn("UITransitionHelper: Invalid node for slideInFromTop");
|
||||
logger.warn("UITransitionHelper: Invalid node for slideInFromTop");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -237,7 +238,7 @@ export class UITransitionHelper {
|
||||
callback?: Function
|
||||
): void {
|
||||
if (!node || !node.isValid) {
|
||||
console.warn("UITransitionHelper: Invalid node for slideOutToTop");
|
||||
logger.warn("UITransitionHelper: Invalid node for slideOutToTop");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -279,7 +280,7 @@ export class UITransitionHelper {
|
||||
callback?: Function
|
||||
): void {
|
||||
if (!node || !node.isValid) {
|
||||
console.warn("UITransitionHelper: Invalid node for slideInFromBottom");
|
||||
logger.warn("UITransitionHelper: Invalid node for slideInFromBottom");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -319,7 +320,7 @@ export class UITransitionHelper {
|
||||
callback?: Function
|
||||
): void {
|
||||
if (!node || !node.isValid) {
|
||||
console.warn("UITransitionHelper: Invalid node for slideOutToBottom");
|
||||
logger.warn("UITransitionHelper: Invalid node for slideOutToBottom");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -361,7 +362,7 @@ export class UITransitionHelper {
|
||||
callback?: Function
|
||||
): void {
|
||||
if (!node || !node.isValid) {
|
||||
console.warn("UITransitionHelper: Invalid node for fadeIn");
|
||||
logger.warn("UITransitionHelper: Invalid node for fadeIn");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -402,7 +403,7 @@ export class UITransitionHelper {
|
||||
callback?: Function
|
||||
): void {
|
||||
if (!node || !node.isValid) {
|
||||
console.warn("UITransitionHelper: Invalid node for fadeOut");
|
||||
logger.warn("UITransitionHelper: Invalid node for fadeOut");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -440,7 +441,7 @@ export class UITransitionHelper {
|
||||
callback?: Function
|
||||
): void {
|
||||
if (!node || !node.isValid) {
|
||||
console.warn("UITransitionHelper: Invalid node for scaleIn");
|
||||
logger.warn("UITransitionHelper: Invalid node for scaleIn");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -471,7 +472,7 @@ export class UITransitionHelper {
|
||||
callback?: Function
|
||||
): void {
|
||||
if (!node || !node.isValid) {
|
||||
console.warn("UITransitionHelper: Invalid node for scaleOut");
|
||||
logger.warn("UITransitionHelper: Invalid node for scaleOut");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -493,7 +494,7 @@ export class UITransitionHelper {
|
||||
*/
|
||||
public static stopAllTweens(node: Node): void {
|
||||
if (!node || !node.isValid) {
|
||||
console.warn("UITransitionHelper: Invalid node for stopAllTweens");
|
||||
logger.warn("UITransitionHelper: Invalid node for stopAllTweens");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user