12345678910111213141516171819202122232425262728293031323334 |
- /**
- * 嘉米自定义 log 工具
- */
- module.exports = {
- /**
- * 普通日志
- *
- * @author Pyden
- * @date 2019-03-21
- */
- log () {
- G.OPEN_DEBUG && cc.log.apply(cc, arguments);
- },
- /**
- * 错误日志
- *
- * @author Pyden
- * @date 2019-03-21
- */
- error () {
- G.OPEN_DEBUG && cc.error.apply(cc, arguments);
- },
- /**
- * 警告日志
- *
- * @author Pyden
- * @date 2019-03-21
- */
- warn () {
- G.OPEN_DEBUG && cc.warn.apply(cc, arguments);
- }
- };
|