mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-16 01:40:27 +02:00
final script repairs for new AudioInjector API
This commit is contained in:
parent
1120a5f963
commit
0154ac9734
2 changed files with 1 additions and 2 deletions
|
@ -39,7 +39,6 @@ function update(deltaTime) {
|
||||||
|
|
||||||
Script.scriptEnding.connect(function() {
|
Script.scriptEnding.connect(function() {
|
||||||
Entities.deleteEntity(objectId);
|
Entities.deleteEntity(objectId);
|
||||||
sound.stop();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Script.update.connect(update);
|
Script.update.connect(update);
|
|
@ -30,7 +30,7 @@ var playing = false;
|
||||||
var ball = false;
|
var ball = false;
|
||||||
|
|
||||||
function maybePlaySound(deltaTime) {
|
function maybePlaySound(deltaTime) {
|
||||||
if (sound.downloaded) {
|
if (sound.downloaded && !soundPlaying) {
|
||||||
var properties = {
|
var properties = {
|
||||||
type: "Sphere",
|
type: "Sphere",
|
||||||
position: options.position,
|
position: options.position,
|
||||||
|
|
Loading…
Reference in a new issue