2017-11-12 13:18:04 +01:00
|
|
|
if (!this.entityLoaded) {
|
2017-11-12 13:11:35 +01:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2017-11-12 13:18:04 +01:00
|
|
|
var texture = GameLib.EntityManager.Instance.findComponentById('gm3fvv45dl');
|
|
|
|
|
2017-11-12 13:07:13 +01:00
|
|
|
if (!this.initialized) {
|
|
|
|
texture.offset.x = 0;
|
|
|
|
texture.offset.y = 0;
|
|
|
|
texture.updateInstance();
|
|
|
|
this.initialized = true;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
texture.offset.x += 0.1;
|
|
|
|
if (texture.offset.x >= 0.9) {
|
|
|
|
if (texture.offset.y >= 0.8) {
|
|
|
|
texture.offset.x = 0;
|
|
|
|
texture.offset.y = 0;
|
|
|
|
} else {
|
|
|
|
texture.offset.x = 0;
|
|
|
|
texture.offset.y += 0.2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-12 13:55:28 +01:00
|
|
|
texture.instance.offset.x = texture.offset.x;
|
|
|
|
texture.instance.offset.y = texture.offset.y;
|
|
|
|
|
|
|
|
//texture.updateInstance();
|
2017-11-12 13:07:13 +01:00
|
|
|
|
|
|
|
return null;
|
|
|
|
//@ sourceURL=textureBeforeRender.js
|