25 lines
495 B
JavaScript
25 lines
495 B
JavaScript
|
var texture = GameLib.EntityManager.Instance.findComponentById('gm3fvv45dl');
|
||
|
|
||
|
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;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
texture.updateInstance();
|
||
|
|
||
|
return null;
|
||
|
//@ sourceURL=textureBeforeRender.js
|