Update: CC - Demo New - Key Up (194yv3pctj.js) 140 bytes modified
parent
242247fc90
commit
b0e5c80eff
|
@ -1,14 +1,19 @@
|
|||
if (this.parentEntity === data.entity) {
|
||||
console.log('key up loaded');
|
||||
} else {
|
||||
console.log(data);
|
||||
return null;
|
||||
if (!this.entityLoaded) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (data.code === 'keyL') {
|
||||
console.log('loading image');
|
||||
if (!this.initialized) {
|
||||
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
|
Loading…
Reference in New Issue