This commit is contained in:
@@ -594,6 +594,18 @@ class GameEngine extends THREE.EventDispatcher{
|
||||
this.ambientSound.play();
|
||||
}
|
||||
|
||||
showBackground(show){
|
||||
if (show){
|
||||
this.motionQueue.add({
|
||||
o: this.scene,
|
||||
a: { backgroundIntensity: 1},
|
||||
t: 15
|
||||
})
|
||||
}else{
|
||||
this.scene.backgroundIntensity = 0;
|
||||
}
|
||||
}
|
||||
|
||||
static textureLoader = new THREE.TextureLoader();
|
||||
static audioLoader = new THREE.AudioLoader();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user