feat(nds): add audio in all menus
This commit is contained in:
@@ -77,6 +77,9 @@ export const useContactStore = defineStore("contact", {
|
||||
pushNotification(content: string) {
|
||||
this.notifications.push(content);
|
||||
|
||||
const { assets } = useAssets();
|
||||
assets.audio.messageSent.play();
|
||||
|
||||
gsap.fromTo(
|
||||
this,
|
||||
{ notificationsYOffset: 20 },
|
||||
@@ -92,6 +95,9 @@ export const useContactStore = defineStore("contact", {
|
||||
animateOutro() {
|
||||
this.isOutro = true;
|
||||
|
||||
const { assets } = useAssets();
|
||||
assets.audio.menuConfirmed.play();
|
||||
|
||||
const timeline = gsap.timeline({
|
||||
onComplete: () => {
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user