r3-custom-code/ip0443a52d.js

27 lines
463 B
JavaScript
Raw Normal View History

if (!this.entityLoaded) {
return;
}
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);
}
//@ sourceURL=ccKeyUp.js