Update: CC - Demo New - Key Up (194yv3pctj.js) 140 bytes modified

beta.r3js.org
-=yb4f310 2018-02-12 10:26:03 +01:00
parent 242247fc90
commit b0e5c80eff
1 changed files with 13 additions and 8 deletions

View File

@ -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