viewar-guide
Advanced tools
Comparing version 0.9.2 to 0.9.3
{ | ||
"name": "viewar-guide", | ||
"version": "0.9.2", | ||
"version": "0.9.3", | ||
"description": "ViewAR Guide", | ||
@@ -5,0 +5,0 @@ "main": "dist/viewar-guide.js", |
@@ -40,29 +40,19 @@ | ||
const hide = () => dependencies.queueSceneUpdate(() => instance.setVisible(false)) | ||
const showTalkingFace = () => { | ||
return new Promise(resolve => { | ||
dependencies.queueSceneUpdate(async() => { | ||
await setPropertyValues(instance, talking); | ||
if (instance.animations[ 'Talk' ]) { | ||
await instance.animations[ 'Talk' ].start({ time: 0, loop: true }, false) | ||
} | ||
const showTalkingFace = () => dependencies.queueSceneUpdate(async() => { | ||
await setPropertyValues(instance, talking); | ||
if (instance.animations[ 'Talk' ]) { | ||
await instance.animations[ 'Talk' ].start({ time: 0, loop: true }, false) | ||
} | ||
}); | ||
resolve(); | ||
}); | ||
}); | ||
}; | ||
const showNormalFace = () => | ||
dependencies.queueSceneUpdate(async() => { | ||
await setPropertyValues(instance, neutral) | ||
const showNormalFace = () => { | ||
return new Promise(resolve => { | ||
dependencies.queueSceneUpdate(async() => { | ||
await setPropertyValues(instance, neutral) | ||
if (instance.animations[ 'Talk' ]) { | ||
await instance.animations[ 'Talk' ].stop(); | ||
} | ||
resolve(); | ||
}); | ||
if (instance.animations[ 'Talk' ]) { | ||
await instance.animations[ 'Talk' ].stop(); | ||
} | ||
}); | ||
}; | ||
@@ -69,0 +59,0 @@ const setPropertyValues = (instance, properties) => { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
190598
2639