Update: CC - Moorcow Start Scene - Before Render (ds7xhwnsao.js) 103 bytes modified
parent
73f427a91a
commit
97e402ef50
|
@ -1,15 +1,23 @@
|
||||||
this.topBall = GameLib.EntityManager.Instance.findComponentById('gh1x1h7rot');
|
if (!this.entityLoaded) {
|
||||||
this.bottomBall = GameLib.EntityManager.Instance.findComponentById('796eyo44j8');
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.text0 = GameLib.EntityManager.Instance.findComponentById('hzr8jx7485');
|
|
||||||
this.text1 = GameLib.EntityManager.Instance.findComponentById('rlx2sebygk');
|
|
||||||
|
|
||||||
if (!this.initialized) {
|
if (!this.initialized) {
|
||||||
this.initialized = true;
|
|
||||||
this.time = 0;
|
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;
|
this.time += data.delta;
|
||||||
|
|
||||||
if (this.text1) {
|
if (this.text1) {
|
||||||
|
@ -25,7 +33,6 @@ if (this.text1) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.topBall) {
|
if (this.topBall) {
|
||||||
|
|
||||||
this.topBall.rotation.y = Math.sin(this.time);
|
this.topBall.rotation.y = Math.sin(this.time);
|
||||||
this.topBall.updateInstance('rotation');
|
this.topBall.updateInstance('rotation');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue