diff --git a/Assets/ResWork/Sound/Ready.mp3 b/Assets/ResWork/Sound/s030_Ready.mp3 similarity index 100% rename from Assets/ResWork/Sound/Ready.mp3 rename to Assets/ResWork/Sound/s030_Ready.mp3 diff --git a/Assets/ResWork/Sound/Ready.mp3.meta b/Assets/ResWork/Sound/s030_Ready.mp3.meta similarity index 100% rename from Assets/ResWork/Sound/Ready.mp3.meta rename to Assets/ResWork/Sound/s030_Ready.mp3.meta diff --git a/Assets/ResWork/Sound/Go!.mp3 b/Assets/ResWork/Sound/s031_Go!.mp3 similarity index 100% rename from Assets/ResWork/Sound/Go!.mp3 rename to Assets/ResWork/Sound/s031_Go!.mp3 diff --git a/Assets/ResWork/Sound/Go!.mp3.meta b/Assets/ResWork/Sound/s031_Go!.mp3.meta similarity index 100% rename from Assets/ResWork/Sound/Go!.mp3.meta rename to Assets/ResWork/Sound/s031_Go!.mp3.meta diff --git a/Assets/ResWork/UI_Animation/MiniGame_Guide.anim b/Assets/ResWork/UI_Animation/MiniGame_Guide.anim index 8f437b8..afa85e5 100644 --- a/Assets/ResWork/UI_Animation/MiniGame_Guide.anim +++ b/Assets/ResWork/UI_Animation/MiniGame_Guide.anim @@ -244,7 +244,7 @@ AnimationClip: flags: 0 m_PPtrCurves: [] m_SampleRate: 60 - m_WrapMode: 2 + m_WrapMode: 0 m_Bounds: m_Center: {x: 0, y: 0, z: 0} m_Extent: {x: 0, y: 0, z: 0} diff --git a/Assets/Scenes/SampleScene.unity b/Assets/Scenes/SampleScene.unity index 7d37ea4..03de4e9 100644 --- a/Assets/Scenes/SampleScene.unity +++ b/Assets/Scenes/SampleScene.unity @@ -19610,6 +19610,8 @@ MonoBehaviour: - {fileID: 8300000, guid: 8466b09bf42e936478ab0fd8711eea01, type: 3} - {fileID: 8300000, guid: 68c6fa9e461ecb443b256560ce0500a8, type: 3} - {fileID: 8300000, guid: e5d3771565247fb488eee9fc417aadc3, type: 3} + - {fileID: 8300000, guid: e0eb2da7439fc034ca5c8191f20d6dba, type: 3} + - {fileID: 8300000, guid: 259a0b95d0f01dc429937c074f67213b, type: 3} arr_bgm: - {fileID: 8300000, guid: f84b956bd038a0a469e34451d8edf1d4, type: 3} - {fileID: 8300000, guid: 91f78e0e508d80b4bbc02cf71c03b081, type: 3} @@ -83379,7 +83381,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 0, y: -368} + m_AnchoredPosition: {x: 134, y: -648} m_SizeDelta: {x: 413, y: 500} m_Pivot: {x: 0.5, y: 0.5} --- !u!111 &2088815943 diff --git a/Assets/Scripts/AttachToGameObject/SoundInfo.cs b/Assets/Scripts/AttachToGameObject/SoundInfo.cs index fdd898b..e68777c 100644 --- a/Assets/Scripts/AttachToGameObject/SoundInfo.cs +++ b/Assets/Scripts/AttachToGameObject/SoundInfo.cs @@ -8,6 +8,7 @@ public enum eSound { s012_Title, s013_GachaOpen, s014_GachaOpen, s015_LuckyCup, s016_LuckyCup, s017_LuckyGetItem, s018_LuckyGetItem, s019_LuckyGetItem, s020_Noraml_Hit, s021_Noraml_Hit, s022_Noraml_Hit, s023_Noraml_Hit, s024_Noraml_Hit, s025_Noraml_Hit, s026_Impact_Hit, s027_Impact_Hit, s028_Impact_Hit, s029_Impact_Hit, + s030_Ready, s031_Go, Max } public enum eBGM { b001_BGM, b002_MiniGame, b003_MiniGame, b004_MiniGame, b005_Gacha, b006_Album, b007_LuckyGame, b008_Title, Max } diff --git a/Assets/Scripts/Game/Game_Mini.cs b/Assets/Scripts/Game/Game_Mini.cs index fd26b27..a984dcd 100644 --- a/Assets/Scripts/Game/Game_Mini.cs +++ b/Assets/Scripts/Game/Game_Mini.cs @@ -123,6 +123,7 @@ public class Game_Mini : MonoBehaviour { gameObject.SetActive(true); SoundInfo.Ins.Play_BGM((eBGM)Random.Range(1, 4)); + go_Guide.SetActive(true); Init(); @@ -169,15 +170,11 @@ public class Game_Mini : MonoBehaviour IEnumerator Co_Update() { - if (PlayerPrefs.GetInt("ShowMiniGameGuide", 0) == 0) - { - PlayerPrefs.SetInt("ShowMiniGameGuide", 1); - go_Guide.SetActive(true); - } - DSUtil.InActivateGameObjects(gos_readygo, 0); bStartGame = false; + SoundInfo.Ins.Play_OneShot(eSound.s030_Ready); yield return new WaitForSeconds(3f); + SoundInfo.Ins.Play_OneShot(eSound.s031_Go); DSUtil.InActivateGameObjects(gos_readygo, 1); bStartGame = true; go_Guide.SetActive(false);