refactor out custom app initialization.

This commit is contained in:
Michael Mainguy 2023-08-06 14:19:15 -05:00
parent abbf9d594e
commit a7997608c2

View File

@ -1,6 +1,8 @@
import {Scene, Sound} from "@babylonjs/core";
export class DiaSounds {
private readonly scene: Scene;
constructor(scene: Scene) {
this.scene = scene;
this._enter = new Sound("enter", "./sounds.mp3", this.scene, null, {
@ -30,7 +32,6 @@ export class DiaSounds {
this._enter.autoplay = true;
DiaSounds._instance = this;
}
private readonly scene: Scene;
private static _instance: DiaSounds;