13 lines
300 B
JavaScript
13 lines
300 B
JavaScript
|
var mesh = GameLib.EntityManager.Instance.findComponentById('5odj0hpf2z');
|
||
|
|
||
|
if (!this.initialized) {
|
||
|
this.initialized = true;
|
||
|
this.time = 0;
|
||
|
}
|
||
|
|
||
|
if (mesh) {
|
||
|
this.time += data.delta;
|
||
|
mesh.rotation.y = Math.sin(this.time);
|
||
|
mesh.updateInstance('rotation');
|
||
|
}
|
||
|
//@ sourceURL=CustomCode (lwk5t658ne).js
|