2017-11-12 13:18:04 +01:00
|
|
|
if (!this.entityLoaded) {
|
2017-11-12 13:11:35 +01:00
|
|
|
return;
|
|
|
|
}
|
2017-11-13 05:52:46 +01:00
|
|
|
/*
|
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;
|
2017-11-13 05:15:56 +01:00
|
|
|
texture.updateInstance('offset');
|
2017-11-12 13:07:13 +01:00
|
|
|
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-13 05:15:56 +01:00
|
|
|
texture.updateInstance('offset');
|
2017-11-13 05:52:46 +01:00
|
|
|
*/
|
2017-11-12 13:55:28 +01:00
|
|
|
//texture.updateInstance();
|
2017-11-12 13:07:13 +01:00
|
|
|
|
|
|
|
return null;
|
|
|
|
//@ sourceURL=textureBeforeRender.js
|