Update: CC - Moorcow Start Scene - Before Render (ds7xhwnsao.js) 103 bytes modified

beta.r3js.org
-=yb4f310 2017-11-23 10:04:43 +01:00
parent 73f427a91a
commit 97e402ef50
1 changed files with 15 additions and 8 deletions

View File

@ -1,15 +1,23 @@
this.topBall = GameLib.EntityManager.Instance.findComponentById('gh1x1h7rot');
this.bottomBall = GameLib.EntityManager.Instance.findComponentById('796eyo44j8');
this.text0 = GameLib.EntityManager.Instance.findComponentById('hzr8jx7485');
this.text1 = GameLib.EntityManager.Instance.findComponentById('rlx2sebygk');
if (!this.entityLoaded) {
return;
}
if (!this.initialized) {
this.initialized = true;
this.time = 0;
this.topBall = this.entityLoaded.topBall;
this.bottomBall = this.entityLoaded.bottomBall;
this.text0 = this.entityLoaded.text0;
this.text1 = this.entityLoaded.text1;
this.initialized = true;
}
this.time += data.delta;
if (this.text1) {
@ -25,7 +33,6 @@ if (this.text1) {
}
if (this.topBall) {
this.topBall.rotation.y = Math.sin(this.time);
this.topBall.updateInstance('rotation');
}