Do-83 [Feat] 사운드 추가 및 호출 함수 추가
This commit is contained in:
parent
7c5dc21e3d
commit
d33f274624
BIN
Assets/Resources/Sounds/ErrorSound.mp3
Normal file
BIN
Assets/Resources/Sounds/ErrorSound.mp3
Normal file
Binary file not shown.
23
Assets/Resources/Sounds/ErrorSound.mp3.meta
Normal file
23
Assets/Resources/Sounds/ErrorSound.mp3.meta
Normal file
@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8b6eda2c005124d48a7b862a955c2ac1
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Resources/Sounds/RatingDownSound.mp3
Normal file
BIN
Assets/Resources/Sounds/RatingDownSound.mp3
Normal file
Binary file not shown.
23
Assets/Resources/Sounds/RatingDownSound.mp3.meta
Normal file
23
Assets/Resources/Sounds/RatingDownSound.mp3.meta
Normal file
@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d946cc47f6d6a8348ad0c8bdf8dc0afe
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Resources/Sounds/RatingSound.mp3
Normal file
BIN
Assets/Resources/Sounds/RatingSound.mp3
Normal file
Binary file not shown.
23
Assets/Resources/Sounds/RatingSound.mp3.meta
Normal file
23
Assets/Resources/Sounds/RatingSound.mp3.meta
Normal file
@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6b8dc6e53098cf8479a556c57166c0dc
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Resources/Sounds/RatingUpSound.mp3
Normal file
BIN
Assets/Resources/Sounds/RatingUpSound.mp3
Normal file
Binary file not shown.
23
Assets/Resources/Sounds/RatingUpSound.mp3.meta
Normal file
23
Assets/Resources/Sounds/RatingUpSound.mp3.meta
Normal file
@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b230af933391ff2408092eb27e74167c
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Resources/Sounds/StoneSound2.mp3
Normal file
BIN
Assets/Resources/Sounds/StoneSound2.mp3
Normal file
Binary file not shown.
23
Assets/Resources/Sounds/StoneSound2.mp3.meta
Normal file
23
Assets/Resources/Sounds/StoneSound2.mp3.meta
Normal file
@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4d09a9fde068d764d96f25c744b808e6
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Resources/Sounds/StoneSound3.mp3
Normal file
BIN
Assets/Resources/Sounds/StoneSound3.mp3
Normal file
Binary file not shown.
23
Assets/Resources/Sounds/StoneSound3.mp3.meta
Normal file
23
Assets/Resources/Sounds/StoneSound3.mp3.meta
Normal file
@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a0eb62de2ee82f44b9f56bc99bc49cf4
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Resources/Sounds/StoneSound4.mp3
Normal file
BIN
Assets/Resources/Sounds/StoneSound4.mp3
Normal file
Binary file not shown.
23
Assets/Resources/Sounds/StoneSound4.mp3.meta
Normal file
23
Assets/Resources/Sounds/StoneSound4.mp3.meta
Normal file
@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 602218e89f800b5409e1db0adbe3b7e9
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Resources/Sounds/StoneSound5.mp3
Normal file
BIN
Assets/Resources/Sounds/StoneSound5.mp3
Normal file
Binary file not shown.
23
Assets/Resources/Sounds/StoneSound5.mp3.meta
Normal file
23
Assets/Resources/Sounds/StoneSound5.mp3.meta
Normal file
@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a1cd5f8e7c3c90b47bf7d39de60e83dd
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Resources/Sounds/StoneSound6.mp3
Normal file
BIN
Assets/Resources/Sounds/StoneSound6.mp3
Normal file
Binary file not shown.
23
Assets/Resources/Sounds/StoneSound6.mp3.meta
Normal file
23
Assets/Resources/Sounds/StoneSound6.mp3.meta
Normal file
@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 404172c1dace08449b9ba215dd1e4e7a
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Resources/Sounds/StoneSound7.mp3
Normal file
BIN
Assets/Resources/Sounds/StoneSound7.mp3
Normal file
Binary file not shown.
23
Assets/Resources/Sounds/StoneSound7.mp3.meta
Normal file
23
Assets/Resources/Sounds/StoneSound7.mp3.meta
Normal file
@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ffa674672ea5fdd438dc98a27b2394b7
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -121,7 +121,6 @@ public class AudioManager : Singleton<AudioManager>
|
||||
PlayBGM();
|
||||
}
|
||||
|
||||
// 클릭 사운드(SFX) 재생
|
||||
public void PlayClickSound()
|
||||
{
|
||||
if (isPlaySFX && sfxAudioSource != null)
|
||||
@ -130,7 +129,6 @@ public class AudioManager : Singleton<AudioManager>
|
||||
}
|
||||
}
|
||||
|
||||
// 닫기 사운드(SFX) 재생
|
||||
public void PlayCloseSound()
|
||||
{
|
||||
if (isPlaySFX && sfxAudioSource != null)
|
||||
@ -191,7 +189,40 @@ public class AudioManager : Singleton<AudioManager>
|
||||
{
|
||||
if (isPlaySFX && sfxAudioSource!=null)
|
||||
{
|
||||
sfxAudioSource.PlayOneShot(GetAudioClip("StoneSound"), sfxVolume);
|
||||
int randomIndex = UnityEngine.Random.Range(1, 8);
|
||||
sfxAudioSource.PlayOneShot(GetAudioClip("StoneSound"+randomIndex), sfxVolume);
|
||||
}
|
||||
}
|
||||
|
||||
public void PlayRatingSound()
|
||||
{
|
||||
if (isPlaySFX && sfxAudioSource!=null)
|
||||
{
|
||||
sfxAudioSource.PlayOneShot(GetAudioClip("RatingSound"), sfxVolume);
|
||||
}
|
||||
}
|
||||
|
||||
public void PlayRatingUpSound()
|
||||
{
|
||||
if (isPlaySFX && sfxAudioSource!=null)
|
||||
{
|
||||
sfxAudioSource.PlayOneShot(GetAudioClip("RatingUpSound"), sfxVolume);
|
||||
}
|
||||
}
|
||||
|
||||
public void PlayRatingDownSound()
|
||||
{
|
||||
if (isPlaySFX && sfxAudioSource!=null)
|
||||
{
|
||||
sfxAudioSource.PlayOneShot(GetAudioClip("RatingDownSound"), sfxVolume);
|
||||
}
|
||||
}
|
||||
|
||||
public void PlayErrorSound()
|
||||
{
|
||||
if (isPlaySFX && sfxAudioSource!=null)
|
||||
{
|
||||
sfxAudioSource.PlayOneShot(GetAudioClip("ErrorSound"), sfxVolume);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user