Update: CC - Demo New - Key Up (ip0443a52d.js) 261 bytes modified

beta.r3js.org
-=yb4f310 2018-02-16 12:26:43 +01:00
parent 54f114e64c
commit a33eda71cf
1 changed files with 1 additions and 14 deletions

View File

@ -3,25 +3,12 @@ if (!this.entityLoaded) {
}
if (!this.initialized) {
this.currentImageIndex = 0;
this.initialized = true;
console.log('key up initialized');
}
if (data.code === 'KeyL') {
if (this.currentImageIndex === this.images.length) {
this.currentImageIndex = 0;
};
var attributeData = this.generateAttributeData(this.currentImageIndex, 128, 128);
this.currentImageIndex++;
this.startAnimation(attributeData);
this.loadNext();
}
//@ sourceURL=ccKeyUp.js