Minigame audio and intros p1
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 37f543020dc5c93449845aad96e4da6c
|
||||
Reference in New Issue
Block a user