remember to delay instance
parent
8d82286f29
commit
c366810951
|
@ -63,7 +63,20 @@ GameLib.Component = function(
|
||||||
*/
|
*/
|
||||||
if (this.linked) {
|
if (this.linked) {
|
||||||
try {
|
try {
|
||||||
this.createInstance();
|
|
||||||
|
if (!this.delayed) {
|
||||||
|
this.createInstance();
|
||||||
|
}
|
||||||
|
// else {
|
||||||
|
// GameLib.Event.Subscribe(
|
||||||
|
// GameLib.Event.DELAYED_INSTANCE,
|
||||||
|
// function(data) {
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
// )
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue