Hi,
I’m downloaded CC 1.5 and found this issue.
- My Scene has script called Game
- in scene has a Note called textNode ( this Node active = false ), this Node has script TestNode
Game.js
onLoad: function () {
this.textNode.active = false;
setTimeout(function() {
this.textNode.active = true;
}.bind(this), 2000);
}
TestNode.js
onLoad: function () {
console.log('onLoad');
},
onEnable: function() {
console.log('onEnable');
}
and when textNode show, onLoad not run.
Console log
Sr my english.
Test.zip (247.0 KB)
My project