미니게임 sfx
This commit is contained in:
parent
cd47adb177
commit
fae1a3a53f
|
|
@ -12,6 +12,7 @@ public class ShowAlbum : MonoBehaviourSingletonTemplate<ShowAlbum>
|
||||||
|
|
||||||
public void Show<T>(T data, bool preview)
|
public void Show<T>(T data, bool preview)
|
||||||
{
|
{
|
||||||
|
SoundInfo.Ins.Play_OneShot(eSound.s004_OpenAlbum);
|
||||||
m_MainUICanvas.SetActive(false);
|
m_MainUICanvas.SetActive(false);
|
||||||
m_ShowPanel.Set(data, preview, () => { m_MainUICanvas.SetActive(true); });
|
m_ShowPanel.Set(data, preview, () => { m_MainUICanvas.SetActive(true); });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,23 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 884b6d6b640fc814d99eb276cf01bcbe
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 8
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 0.01
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,23 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: bedea2294c63f3940865062d9bfe8e03
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 8
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 0.01
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,23 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 826ee32545638574883bf804a35e0aaf
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 8
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 0.01
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,23 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7f5ed85bc3ec6854ab0d0eb17772d003
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 8
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 0.01
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,23 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 821b02d0f4a9c6243b4eed732e9b07b8
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 8
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 0.01
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,23 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 13a07f8a9fe660842a3869bc9579d461
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 8
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 0.01
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,23 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 30b2660e336ef83439732cf4375e7e8f
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 8
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 0.01
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,23 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a01e2bcfdb25b35419dbd9e1195317e7
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 8
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 0.01
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,23 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8eb7825b9b7d12441a493aeb67e20670
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 8
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 0.01
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -12783,6 +12783,15 @@ MonoBehaviour:
|
||||||
arr_clip:
|
arr_clip:
|
||||||
- {fileID: 8300000, guid: 566a779851d20d948a663e4cb01b8e7b, type: 3}
|
- {fileID: 8300000, guid: 566a779851d20d948a663e4cb01b8e7b, type: 3}
|
||||||
- {fileID: 8300000, guid: dcc9169a3dc11454799276674a8fd96b, type: 3}
|
- {fileID: 8300000, guid: dcc9169a3dc11454799276674a8fd96b, type: 3}
|
||||||
|
- {fileID: 8300000, guid: 884b6d6b640fc814d99eb276cf01bcbe, type: 3}
|
||||||
|
- {fileID: 8300000, guid: bedea2294c63f3940865062d9bfe8e03, type: 3}
|
||||||
|
- {fileID: 8300000, guid: 826ee32545638574883bf804a35e0aaf, type: 3}
|
||||||
|
- {fileID: 8300000, guid: 7f5ed85bc3ec6854ab0d0eb17772d003, type: 3}
|
||||||
|
- {fileID: 8300000, guid: 821b02d0f4a9c6243b4eed732e9b07b8, type: 3}
|
||||||
|
- {fileID: 8300000, guid: 13a07f8a9fe660842a3869bc9579d461, type: 3}
|
||||||
|
- {fileID: 8300000, guid: 30b2660e336ef83439732cf4375e7e8f, type: 3}
|
||||||
|
- {fileID: 8300000, guid: a01e2bcfdb25b35419dbd9e1195317e7, type: 3}
|
||||||
|
- {fileID: 8300000, guid: 8eb7825b9b7d12441a493aeb67e20670, type: 3}
|
||||||
arr_bgm:
|
arr_bgm:
|
||||||
- {fileID: 8300000, guid: f6114cbd9684c734a86622e924246b10, type: 3}
|
- {fileID: 8300000, guid: f6114cbd9684c734a86622e924246b10, type: 3}
|
||||||
- {fileID: 8300000, guid: 91f78e0e508d80b4bbc02cf71c03b081, type: 3}
|
- {fileID: 8300000, guid: 91f78e0e508d80b4bbc02cf71c03b081, type: 3}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,13 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public enum eSound { s001_ButtonClick, s002_UIClose,
|
public enum eSound {
|
||||||
Max
|
s001_ButtonClick, s002_UIClose, s003_SelectAlbum, s004_OpenAlbum,
|
||||||
}
|
s005_MiniGameResult, s006_MiniGameGetHeart, s007_MiniGameGetChatCoint, s008_MiniGameGetGachaCoin, s009_MiniGameUseBomb,
|
||||||
|
s010_MiniGameUseUmbrella, s011_MiniGameUseDildo,
|
||||||
|
|
||||||
|
Max
|
||||||
|
}
|
||||||
public enum eBGM { b001_BGM, b002_MiniGame, b003_MiniGame, b004_MiniGame, b005_Gacha, b006_Album, b007_LuckyGame, Max }
|
public enum eBGM { b001_BGM, b002_MiniGame, b003_MiniGame, b004_MiniGame, b005_Gacha, b006_Album, b007_LuckyGame, Max }
|
||||||
|
|
||||||
public class SoundInfo : MonoBehaviourSingletonTemplate<SoundInfo>
|
public class SoundInfo : MonoBehaviourSingletonTemplate<SoundInfo>
|
||||||
|
|
@ -44,7 +48,7 @@ public class SoundInfo : MonoBehaviourSingletonTemplate<SoundInfo>
|
||||||
return vol;
|
return vol;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Play_OneShot(eSound _sound, float vol = 0.5f)
|
public void Play_OneShot(eSound _sound, float vol = 1f)
|
||||||
{
|
{
|
||||||
if (SaveMgr.Ins.Get_Option(eOption.Sound))
|
if (SaveMgr.Ins.Get_Option(eOption.Sound))
|
||||||
Play_OneShot(dic_clip[_sound], vol);
|
Play_OneShot(dic_clip[_sound], vol);
|
||||||
|
|
|
||||||
|
|
@ -291,12 +291,15 @@ public class Game_Mini : MonoBehaviour
|
||||||
{ // 아이템 적용
|
{ // 아이템 적용
|
||||||
case eMiniGameObtacleType.ItemBomb:
|
case eMiniGameObtacleType.ItemBomb:
|
||||||
list_MiniGameObtacle.ForEach(f => f.Off_OnlyObtacle());
|
list_MiniGameObtacle.ForEach(f => f.Off_OnlyObtacle());
|
||||||
|
SoundInfo.Ins.Play_OneShot(eSound.s009_MiniGameUseBomb);
|
||||||
break;
|
break;
|
||||||
case eMiniGameObtacleType.ItemUmbrella:
|
case eMiniGameObtacleType.ItemUmbrella:
|
||||||
StartCoroutine(Co_Shiled());
|
StartCoroutine(Co_Shiled());
|
||||||
|
SoundInfo.Ins.Play_OneShot(eSound.s010_MiniGameUseUmbrella);
|
||||||
break;
|
break;
|
||||||
case eMiniGameObtacleType.ItemDildo:
|
case eMiniGameObtacleType.ItemDildo:
|
||||||
list_MiniGameObtacle.ForEach(f => f.Change_Item(dic_weight));
|
list_MiniGameObtacle.ForEach(f => f.Change_Item(dic_weight));
|
||||||
|
SoundInfo.Ins.Play_OneShot(eSound.s011_MiniGameUseDildo);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -306,10 +309,22 @@ public class Game_Mini : MonoBehaviour
|
||||||
dic_Money.Add(type, 0);
|
dic_Money.Add(type, 0);
|
||||||
dic_Money[type] += val;
|
dic_Money[type] += val;
|
||||||
|
|
||||||
if (type == eMiniGameObtacleType.ItemBomb || type == eMiniGameObtacleType.ItemUmbrella ||
|
switch (type)
|
||||||
type == eMiniGameObtacleType.ItemDildo)
|
|
||||||
{
|
{
|
||||||
|
case eMiniGameObtacleType.AlbumOpen:
|
||||||
|
SoundInfo.Ins.Play_OneShot(eSound.s006_MiniGameGetHeart);
|
||||||
|
break;
|
||||||
|
case eMiniGameObtacleType.ChatCoin:
|
||||||
|
SoundInfo.Ins.Play_OneShot(eSound.s007_MiniGameGetChatCoint);
|
||||||
|
break;
|
||||||
|
case eMiniGameObtacleType.GachaCoin:
|
||||||
|
SoundInfo.Ins.Play_OneShot(eSound.s008_MiniGameGetGachaCoin);
|
||||||
|
break;
|
||||||
|
case eMiniGameObtacleType.ItemBomb:
|
||||||
|
case eMiniGameObtacleType.ItemUmbrella:
|
||||||
|
case eMiniGameObtacleType.ItemDildo:
|
||||||
if (dic_Money[type] > 5) dic_Money[type] = 5;
|
if (dic_Money[type] > 5) dic_Money[type] = 5;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
dic_Money[type].Obfuscate();
|
dic_Money[type].Obfuscate();
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ public class Game_Mini_Result : MonoBehaviour
|
||||||
public void Set(float playtime)
|
public void Set(float playtime)
|
||||||
{
|
{
|
||||||
gameObject.SetActive(true);
|
gameObject.SetActive(true);
|
||||||
|
SoundInfo.Ins.Play_OneShot(eSound.s005_MiniGameResult);
|
||||||
|
|
||||||
texts[0].text = DSUtil.Get_TimeText_MS(playtime);
|
texts[0].text = DSUtil.Get_TimeText_MS(playtime);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,5 +52,6 @@ public class AlbumCard : CardBase
|
||||||
public void OnClick_Show()
|
public void OnClick_Show()
|
||||||
{
|
{
|
||||||
if (IsObtain()) ShowAlbum.Ins.Show(m_Data, false);
|
if (IsObtain()) ShowAlbum.Ins.Show(m_Data, false);
|
||||||
|
else SoundInfo.Ins.Play_OneShot(eSound.s003_SelectAlbum);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -4,4 +4,5 @@
|
||||||
|
|
||||||
상점은 이야기 후 다시
|
상점은 이야기 후 다시
|
||||||
광고 제거권
|
광고 제거권
|
||||||
- 구매 후 UI 처리
|
- 구매 후 UI 처리
|
||||||
|
파이어 베이스
|
||||||
Loading…
Reference in New Issue