Update: CC - Demo New - Key Up (194yv3pctj.js) 140 bytes modified
parent
242247fc90
commit
b0e5c80eff
|
@ -1,14 +1,19 @@
|
||||||
if (this.parentEntity === data.entity) {
|
if (!this.entityLoaded) {
|
||||||
console.log('key up loaded');
|
return;
|
||||||
} else {
|
|
||||||
console.log(data);
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.code === 'keyL') {
|
if (!this.initialized) {
|
||||||
console.log('loading image');
|
this.imageSpoon = this.entityLoaded.imageSpoon;
|
||||||
|
this.imageEarth = this.entityLoaded.imageEarth;
|
||||||
|
this.initialized = true;
|
||||||
|
console.log('key up initialized');
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(data);
|
if (data.code === 'KeyL') {
|
||||||
|
|
||||||
|
var heightData = this.imageSpoon.getHeightData();
|
||||||
|
|
||||||
|
console.log('got data');
|
||||||
|
}
|
||||||
|
|
||||||
//@ sourceURL=ccKeyUp.js
|
//@ sourceURL=ccKeyUp.js
|
Loading…
Reference in New Issue