diff --git a/Assets/Level Complete Sound.mp3 b/Assets/Level Complete Sound.mp3 new file mode 100644 index 00000000..966b96b2 Binary files /dev/null and b/Assets/Level Complete Sound.mp3 differ diff --git a/Assets/Level Complete Sound.mp3.meta b/Assets/Level Complete Sound.mp3.meta new file mode 100644 index 00000000..268d45df --- /dev/null +++ b/Assets/Level Complete Sound.mp3.meta @@ -0,0 +1,23 @@ +fileFormatVersion: 2 +guid: 609c1b54e4d5c434e984329145119f2f +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: diff --git a/Assets/Pipe Rotation Sound.wav b/Assets/Pipe Rotation Sound.wav new file mode 100644 index 00000000..049f841c Binary files /dev/null and b/Assets/Pipe Rotation Sound.wav differ diff --git a/Assets/Pipe Rotation Sound.wav.meta b/Assets/Pipe Rotation Sound.wav.meta new file mode 100644 index 00000000..b430e50a --- /dev/null +++ b/Assets/Pipe Rotation Sound.wav.meta @@ -0,0 +1,23 @@ +fileFormatVersion: 2 +guid: 87c5537e5b84cc347909cb5b2cd0c4e2 +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: diff --git a/Assets/Prefab/GameMaster.prefab b/Assets/Prefab/GameMaster.prefab index 0256ac11..30fc21d9 100644 --- a/Assets/Prefab/GameMaster.prefab +++ b/Assets/Prefab/GameMaster.prefab @@ -911,8 +911,8 @@ MonoBehaviour: - {fileID: 8300000, guid: 2f4130c9d5cf48829111e4d372e04dcb, type: 3} - {fileID: 8300000, guid: 719445bebaa148e7bd7be92373b62244, type: 3} otherClips: - - {fileID: 0} - - {fileID: 0} + - {fileID: 8300000, guid: 87c5537e5b84cc347909cb5b2cd0c4e2, type: 3} + - {fileID: 8300000, guid: 609c1b54e4d5c434e984329145119f2f, type: 3} --- !u!82 &1790415148045805081 AudioSource: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/Cell.cs b/Assets/Scripts/Cell.cs index 5e0e3bd9..071f0335 100644 --- a/Assets/Scripts/Cell.cs +++ b/Assets/Scripts/Cell.cs @@ -157,6 +157,7 @@ public class Cell : MonoBehaviour { GamePlayManager.instance.OnButtonClick(this); } + Sound.instance.Play(Sound.Others.PipeRotation); }); } rightRotationValue = lcd.RightRotationValue; diff --git a/Assets/Scripts/GamePlayManager.cs b/Assets/Scripts/GamePlayManager.cs index f775459f..ffb6f241 100644 --- a/Assets/Scripts/GamePlayManager.cs +++ b/Assets/Scripts/GamePlayManager.cs @@ -433,6 +433,7 @@ public class GamePlayManager : MonoBehaviour nextBtn.GetComponentInChildren().text = "BACK"; } nextBtn.interactable = false; + Sound.instance.Play(Sound.Others.LevelComplete); gameOverPopup.Open(); confettiParticle.Play(); yield return new WaitForSeconds(0.5f); diff --git a/Assets/Scripts/Sound.cs b/Assets/Scripts/Sound.cs index 557a7501..573c9fd9 100644 --- a/Assets/Scripts/Sound.cs +++ b/Assets/Scripts/Sound.cs @@ -24,18 +24,18 @@ public class Sound : MonoBehaviour public enum Others { - Other1, - Other2 + PipeRotation, + LevelComplete, } public AudioSource audioSource; public AudioSource loopAudioSource; - [HideInInspector] + //[HideInInspector] public AudioClip[] buttonClips; - [HideInInspector] + //[HideInInspector] public AudioClip[] otherClips; public static Sound instance;