final script repairs for new AudioInjector API

This commit is contained in:
Stephen Birarda 2015-02-12 11:52:20 -08:00
parent 1120a5f963
commit 0154ac9734
2 changed files with 1 additions and 2 deletions

View file

@ -39,7 +39,6 @@ function update(deltaTime) {
Script.scriptEnding.connect(function() {
Entities.deleteEntity(objectId);
sound.stop();
});
Script.update.connect(update);

View file

@ -30,7 +30,7 @@ var playing = false;
var ball = false;
function maybePlaySound(deltaTime) {
if (sound.downloaded) {
if (sound.downloaded && !soundPlaying) {
var properties = {
type: "Sphere",
position: options.position,