19 lines
364 B
JavaScript
19 lines
364 B
JavaScript
if (!this.entityLoaded) {
|
|
return;
|
|
}
|
|
|
|
if (!this.initialized) {
|
|
this.imageSpoon = this.entityLoaded.imageSpoon;
|
|
this.imageEarth = this.entityLoaded.imageEarth;
|
|
this.initialized = true;
|
|
console.log('key up initialized');
|
|
}
|
|
|
|
if (data.code === 'KeyL') {
|
|
|
|
var heightData = this.imageSpoon.getHeightData();
|
|
|
|
console.log('got data');
|
|
}
|
|
|
|
//@ sourceURL=ccKeyUp.js
|