Update: CC - Before Render - Moorcow (a2ow5l92js.js) 309 bytes modified
parent
58e688c398
commit
1f9ceba1c2
|
@ -440,6 +440,9 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
|||
|
||||
this.scoreMesh.instance.quaternion.copy(this.camera.instance.quaternion);
|
||||
|
||||
this.scoreMesh.materials[0].opacity = 1.0;
|
||||
this.scoreMesh.materials[0].updateInstance('opacity');
|
||||
|
||||
this.scoreMesh.position = enemy.mesh.position.clone();
|
||||
this.scoreMesh.updateInstance('position');
|
||||
|
||||
|
@ -687,6 +690,12 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
|||
this.totalTime += data.delta;
|
||||
this.enemySpawnTime += data.delta;
|
||||
|
||||
this.scoreMesh.materials[0].opacity -= 0.1 * data.delta;
|
||||
if (this.scoreMesh.materials[0].opacity < 0) {
|
||||
this.scoreMesh.materials[0].opacity = 0;
|
||||
}
|
||||
this.scoreMesh.materials[0].updateInstance('opacity');
|
||||
|
||||
this.scene.meshes.map(
|
||||
function(mesh) {
|
||||
if (mesh.instance.material instanceof Array) {
|
||||
|
|
Loading…
Reference in New Issue