Skip to content

Commit dab5c4f

Browse files
committed
add logs
1 parent be6010a commit dab5c4f

4 files changed

Lines changed: 13 additions & 1 deletion

File tree

bin/LayaAdapter.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ define("LayaAdapter", ["require", "exports"], function (require, exports) {
22
"use strict";
33
Object.defineProperty(exports, "__esModule", { value: true });
44
exports.Text = Laya.Text;
5+
console.log('LayaAdapter executed.')
56
});
7+
8+
console.log('LayaAdapter loaded.')

bin/js/GameMain.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ define(["require", "exports", "./Greeting"], function (require, exports, Greetin
44
// 程序入口
55
var GameMain = (function () {
66
function GameMain() {
7+
console.log('GameMain instantiation.')
78
Laya.init(600, 400);
89
new Greeting_1.Greeting();
910
}
1011
return GameMain;
1112
}());
1213
new GameMain();
14+
console.log('GameMain module executed.')
1315
});
16+
console.log('GameMain loaded.')

bin/js/Greeting.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ define(["require", "exports", "./getColor", "LayaAdapter"], function (require, e
33
Object.defineProperty(exports, "__esModule", { value: true });
44
var Greeting = (function () {
55
function Greeting() {
6+
console.log('Greeting instantiation.')
67
var hello = new LayaAdapter_1.Text();
78
hello.text = 'Hello LayaAir';
89
hello.fontSize = 20;
@@ -12,4 +13,7 @@ define(["require", "exports", "./getColor", "LayaAdapter"], function (require, e
1213
return Greeting;
1314
}());
1415
exports.Greeting = Greeting;
16+
console.log('Greeting module executed.')
1517
});
18+
19+
console.log('Greeting loaded.')

bin/js/getColor.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
define(["require", "exports"], function (require, exports) {
22
"use strict";
33
Object.defineProperty(exports, "__esModule", { value: true });
4-
exports.getColor = function () { return '#ff0000'; };
4+
exports.getColor = function () { console.log('method getcolor executed.'); return '#ff0000'; };
5+
console.log('getColor module executed.')
56
});
7+
console.log('getColor loaded.')

0 commit comments

Comments
 (0)