From a7997608c29bb854431321b71ea5abc0724a8053 Mon Sep 17 00:00:00 2001 From: Michael Mainguy Date: Sun, 6 Aug 2023 14:19:15 -0500 Subject: [PATCH] refactor out custom app initialization. --- src/util/diaSounds.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/diaSounds.ts b/src/util/diaSounds.ts index 87222bc..9f58b44 100644 --- a/src/util/diaSounds.ts +++ b/src/util/diaSounds.ts @@ -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;