From 97e402ef509bbb450e35ddb128235e493fe420d1 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Thu, 23 Nov 2017 10:04:43 +0100 Subject: [PATCH] Update: CC - Moorcow Start Scene - Before Render (ds7xhwnsao.js) 103 bytes modified --- ds7xhwnsao.js | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/ds7xhwnsao.js b/ds7xhwnsao.js index a82835e..530380f 100644 --- a/ds7xhwnsao.js +++ b/ds7xhwnsao.js @@ -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'); }