19 lines
521 B
C#
19 lines
521 B
C#
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);
|
|
}
|
|
}
|