bugfix
This commit is contained in:
@@ -130,7 +130,11 @@ export default {
|
||||
await gameEngine.playAmbientSound(this.scene.data.$audio.asset.name);
|
||||
gameEngine.ambientSound.setVolume( 0.5 );
|
||||
}
|
||||
intro?.play();
|
||||
if (intro){
|
||||
intro.play();
|
||||
}else{
|
||||
gameEngine.activeObjects.visible = true;
|
||||
}
|
||||
});
|
||||
await this.expandScenarioData(scene);
|
||||
gameEngine.dashboard?.loading(0.05);
|
||||
@@ -220,7 +224,9 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
if (this.scene.data.$intro && this.env != 'GameDesigner'){
|
||||
if (this.env == 'GameDesigner'){
|
||||
gameEngine.activeObjects.visible = true;
|
||||
}else if (this.scene.data.$intro){
|
||||
intro = await new VideoPlayer(gameEngine, {
|
||||
$go: this.scene.data.$intro,
|
||||
skipTransition: true,
|
||||
@@ -232,11 +238,7 @@ export default {
|
||||
intro.object.removeFromParent();
|
||||
gameEngine.clickable.remove(intro.object); //TODO!!!!
|
||||
gameEngine.activeObjects.visible = true;
|
||||
gameEngine.showBackground(true);
|
||||
});
|
||||
}else{
|
||||
gameEngine.activeObjects.visible = true;
|
||||
gameEngine.showBackground(true);
|
||||
}
|
||||
|
||||
gameEngine.dashboard?.loading(1)
|
||||
|
||||
Reference in New Issue
Block a user