diff --git a/Assets/Scenes/Reparation.unity b/Assets/Scenes/Reparation.unity index 7d94737..82001ef 100644 --- a/Assets/Scenes/Reparation.unity +++ b/Assets/Scenes/Reparation.unity @@ -13234,6 +13234,10 @@ PrefabInstance: propertyPath: oxygenWarning3 value: objectReference: {fileID: 8300000, guid: 7ed3c99bc63172e4180096d90f099246, type: 3} + - target: {fileID: 1285577524151521393, guid: 6bacecc4f3df9584198879c73a6b6c36, type: 3} + propertyPath: enterWaterSound + value: + objectReference: {fileID: 8300000, guid: 335961129c6c5454a8de1c786544d148, type: 3} - target: {fileID: 1285577524151521393, guid: 6bacecc4f3df9584198879c73a6b6c36, type: 3} propertyPath: playerRigidbody value: @@ -18620,7 +18624,7 @@ MonoBehaviour: welderPrefab: {fileID: 1071434719} rayDistance: 100 playerCamera: {fileID: 0} - _welderInHand: 0 + welderInHand: 0 --- !u!4 &1130256303 stripped Transform: m_CorrespondingSourceObject: {fileID: -5819118886272102141, guid: e0f672a015f8fee418afd70dfd718f0d, type: 3} diff --git a/Assets/Scripts/WaterLogic.cs b/Assets/Scripts/WaterLogic.cs index 4ba6e1b..6cb0128 100644 --- a/Assets/Scripts/WaterLogic.cs +++ b/Assets/Scripts/WaterLogic.cs @@ -20,6 +20,7 @@ public class WaterLogic : MonoBehaviour public AudioClip oxygenWarning3; public Image blackFadeImage; public TextMeshProUGUI oxygenWarningText; + public AudioClip enterWaterSound; private AudioSource _audioSource; private Coroutine _oxygenDecrementCoroutine; @@ -222,6 +223,7 @@ private void EnterWater() Physics.gravity *= waterGravityScale; playerRigidbody.drag = 3f; _audioSource.PlayOneShot(underwaterAmbience); + _audioSource.PlayOneShot(enterWaterSound); _audioSource.clip = underwaterBreathing; _audioSource.loop = true; diff --git a/Assets/Sounds/Environment/splash.mp3 b/Assets/Sounds/Environment/splash.mp3 new file mode 100644 index 0000000..2b1a0e5 Binary files /dev/null and b/Assets/Sounds/Environment/splash.mp3 differ diff --git a/Assets/Sounds/Environment/water-splash-in-lake-02.wav b/Assets/Sounds/Environment/water-splash-in-lake-02.wav deleted file mode 100644 index 50c813c..0000000 Binary files a/Assets/Sounds/Environment/water-splash-in-lake-02.wav and /dev/null differ