if (!this.entityLoaded) { return; } if (!this.initialized) { 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) { this.text0.scale.x = 0.08 + Math.sin(2 * this.time) * 0.01; this.text0.scale.y = 0.08 + Math.sin(2 * this.time) * 0.01; this.text0.scale.z = 0.08 + Math.sin(2 * this.time) * 0.01; this.text0.updateInstance('scale'); this.text1.scale.x = 0.09 + Math.cos(2 * this.time) * 0.01; this.text1.scale.y = 0.09 + Math.cos(2 * this.time) * 0.01; this.text1.scale.z = 0.09 + Math.cos(2 * this.time) * 0.01; this.text1.updateInstance('scale'); } if (this.topBall) { this.topBall.rotation.y = Math.sin(this.time); this.topBall.updateInstance('rotation'); } if (this.bottomBall) { this.bottomBall.rotation.y = Math.cos(this.time); this.bottomBall.updateInstance('rotation'); } //@ sourceURL=CustomCode (ds7xhwnsao).js