Minigame audio and intros p1

This commit is contained in:
journaliciouz
2025-12-19 01:57:45 +01:00
parent a83834369e
commit 886eb9cbeb
66 changed files with 2601 additions and 480 deletions

View File

@@ -46,6 +46,8 @@ namespace Minigames.StatueDressup.Controllers
// Public properties
public Transform StatueParent => statueParent;
public RectTransform StatueArea => statueArea;
public DressupPhotoFeedback dressupFeedback;
internal override void OnManagedAwake()
{
@@ -167,6 +169,7 @@ namespace Minigames.StatueDressup.Controllers
}
Logging.Debug("[StatueDecorationController] Taking photo of statue");
dressupFeedback.PhotoTaken();
// CapturePhotoCoroutine handles all UI hiding/showing
StartCoroutine(CapturePhotoCoroutine());

View File

@@ -0,0 +1,18 @@
using UnityEngine;
using UnityEngine.Audio;
public class DressupPhotoFeedback : MonoBehaviour
{
public AppleAudioSource voiceAudioSource;
public AppleAudioSource SoundAudioSource;
public AudioResource takePhotoAudioVO;
public AudioResource takePhotoAudioSFX;
public void PhotoTaken()
{
voiceAudioSource.audioSource.resource = takePhotoAudioVO;
voiceAudioSource.Play(0);
SoundAudioSource.audioSource.resource = takePhotoAudioSFX;
SoundAudioSource.Play(0);
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 37f543020dc5c93449845aad96e4da6c