fix: move sounds outside suspense
This commit is contained in:
@@ -93,6 +93,7 @@ export default function Fear() {
|
|||||||
<Hallway />
|
<Hallway />
|
||||||
<TheCreature />
|
<TheCreature />
|
||||||
<Player />
|
<Player />
|
||||||
|
</Suspense>
|
||||||
|
|
||||||
<AmbientSound
|
<AmbientSound
|
||||||
key="ambient-1"
|
key="ambient-1"
|
||||||
@@ -111,7 +112,6 @@ export default function Fear() {
|
|||||||
url='fear/snd/glitch.mp3'
|
url='fear/snd/glitch.mp3'
|
||||||
volume={1}
|
volume={1}
|
||||||
/> : null}
|
/> : null}
|
||||||
</Suspense>
|
|
||||||
</Canvas>
|
</Canvas>
|
||||||
</>)
|
</>)
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user