diff --git a/IronToad_UnityProject/Assets/Scripts/AudioController.cs b/IronToad_UnityProject/Assets/Scripts/AudioController.cs new file mode 100644 index 0000000..2502665 --- /dev/null +++ b/IronToad_UnityProject/Assets/Scripts/AudioController.cs @@ -0,0 +1,233 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class AudioController : MonoBehaviour +{ + public AudioSource[] bgmSources; + public AudioSource[] ambSources; + public AudioSource[] sfxSources; + + public AudioClip[] bgmClips; + public AudioClip[] ambClips; + public AudioClip[] sfxClips; + + void Awake() + { + NotificationServer.register("play bgm", playBgm); + NotificationServer.register("play amb", playAmb); + NotificationServer.register("play sfx", playSfx); + + NotificationServer.register("fade bgm", fadeBgm); + NotificationServer.register("fade amb", fadeAmb); + } + + void Start() + { + foreach (AudioSource s in bgmSources) + s.volume = 0f; + foreach (AudioSource s in ambSources) + s.volume = 0f; + foreach (AudioSource s in sfxSources) + s.volume = 0f; + + NotificationServer.notify("play amb", "oceanAmbience:0.5"); + } + + public void playAmb(object audioNameObj) + { + string audioName = audioNameObj as string; + if (audioName == null || audioName == "") + return; + + string[] tokens = audioName.ToLower().Split(':'); + audioName = tokens[0]; + float volume = 1f; + if (tokens.Length > 1) + float.TryParse(tokens[1], out volume); + + AudioClip clip = null; + foreach (AudioClip c in ambClips) + { + if (c.name.ToLower() == audioName) + { + clip = c; + break; + } + } + + if (clip == null) + return; + + bool foundEmpty = false; + foreach (AudioSource s in ambSources) + { + if (s.isPlaying) + { + LeanTween.cancel(s.gameObject); + LeanTween.value(s.gameObject, s.volume, 0f, 0.5f).setOnUpdate((float val)=>{ + s.volume = val; + }).setOnComplete(()=>{ + s.Stop(); + s.clip = null; + }).setIgnoreTimeScale(true); + } + else if (!foundEmpty) + { + LeanTween.cancel(s.gameObject); + foundEmpty = true; + s.clip = clip; + s.Play(); + LeanTween.value(s.gameObject, s.volume, volume, 0.5f).setOnUpdate((float val)=>{ + s.volume = val; + }).setIgnoreTimeScale(true); + } + } + } + + public void playSfx(object audioNameObj) + { + string audioName = audioNameObj as string; + if (audioName == null || audioName == "") + return; + + string[] tokens = audioName.ToLower().Split(':'); + audioName = tokens[0]; + float volume = 1f; + if (tokens.Length > 1) + float.TryParse(tokens[1], out volume); + + AudioClip clip = null; + foreach (AudioClip c in sfxClips) + { + if (c.name.ToLower() == audioName) + { + clip = c; + break; + } + } + + if (clip == null) + return; + + foreach (AudioSource s in sfxSources) + { + if (!s.isPlaying) + { + LeanTween.cancel(s.gameObject); + s.clip = clip; + s.volume = volume; + s.Play(); + } + } + } + + public void playBgm(object audioNameObj) + { + string audioNames = audioNameObj as string; + if (audioNames == null || audioNames == "") + return; + + audioNames = audioNames.ToLower(); + string[] tokens = audioNames.Split('/'); + if (tokens.Length > 1) + { + foreach (string t in tokens) + playBgm(t.Trim()); + return; + } + string[] tokens2 = audioNames.Split(':'); + string audioName = tokens2[0]; + float volume = 1f; + if (tokens2.Length > 1) + float.TryParse(tokens2[1], out volume); + + AudioClip clip = null; + foreach (AudioClip c in bgmClips) + { + if (c.name.ToLower() == audioName) + { + clip = c; + break; + } + } + + if (clip == null) + return; + + AudioSource foundEmpty = null; + foreach (AudioSource s in bgmSources) + { + if (s.clip != null && s.clip == clip) + { + LeanTween.cancel(s.gameObject); + foundEmpty = s; + } + else if (s.isPlaying) + { + LeanTween.cancel(s.gameObject); + LeanTween.value(s.gameObject, s.volume, 0f, 0.5f).setOnUpdate((float val)=>{ + s.volume = val; + }).setOnComplete(()=>{ + s.Stop(); + s.clip = null; + }).setIgnoreTimeScale(true); + } + else if (foundEmpty == null) + { + LeanTween.cancel(s.gameObject); + foundEmpty = s; + } + } + if (foundEmpty != null && !foundEmpty.isPlaying) + { + LeanTween.cancel(foundEmpty.gameObject); + foundEmpty.clip = clip; + foundEmpty.Play(); + LeanTween.value(foundEmpty.gameObject, foundEmpty.volume, volume, 0.5f).setOnUpdate((float val)=>{ + foundEmpty.volume = val; + }).setIgnoreTimeScale(true); + } + else if (foundEmpty != null && foundEmpty.isPlaying) + { + LeanTween.cancel(foundEmpty.gameObject); + LeanTween.value(foundEmpty.gameObject, foundEmpty.volume, volume, 0.5f).setOnUpdate((float val)=>{ + foundEmpty.volume = val; + }).setIgnoreTimeScale(true); + } + } + + public void fadeBgm() + { + foreach (AudioSource s in bgmSources) + { + if (s.isPlaying) + { + LeanTween.cancel(s.gameObject); + LeanTween.value(s.gameObject, s.volume, 0f, 0.5f).setOnUpdate((float val)=>{ + s.volume = val; + }).setOnComplete(()=>{ + s.Stop(); + s.clip = null; + }).setIgnoreTimeScale(true); + } + } + } + + public void fadeAmb() + { + foreach (AudioSource s in ambSources) + { + if (s.isPlaying) + { + LeanTween.cancel(s.gameObject); + LeanTween.value(s.gameObject, s.volume, 0f, 0.5f).setOnUpdate((float val)=>{ + s.volume = val; + }).setOnComplete(()=>{ + s.Stop(); + s.clip = null; + }).setIgnoreTimeScale(true); + } + } + } +} diff --git a/IronToad_UnityProject/Assets/Scripts/AudioController.cs.meta b/IronToad_UnityProject/Assets/Scripts/AudioController.cs.meta new file mode 100644 index 0000000..b4a3ecb --- /dev/null +++ b/IronToad_UnityProject/Assets/Scripts/AudioController.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 66e9541bf46304a888e3e492fda8055d +timeCreated: 1485043076 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/IronToad_UnityProject/Assets/Scripts/CustomSmoothFollow.cs b/IronToad_UnityProject/Assets/Scripts/CustomSmoothFollow.cs index 76a0265..ee23660 100644 --- a/IronToad_UnityProject/Assets/Scripts/CustomSmoothFollow.cs +++ b/IronToad_UnityProject/Assets/Scripts/CustomSmoothFollow.cs @@ -42,7 +42,7 @@ public class CustomSmoothFollow : MonoBehaviour RaycastHit hitInfo; if (Physics.Raycast(wantedPos, target.position-wantedPos, out hitInfo, (target.position-wantedPos).magnitude * 2f)) { - Debug.LogWarning (hitInfo.collider.name + " -- " + hitInfo.collider.gameObject.layer + " -- " + layerMask); +// Debug.LogWarning (hitInfo.collider.name + " -- " + hitInfo.collider.gameObject.layer + " -- " + layerMask); if (hitInfo.collider.gameObject.layer == layerMask) isBlocked = true; } @@ -51,6 +51,8 @@ public class CustomSmoothFollow : MonoBehaviour { wantedPos.y = target.position.y + altHeight; wantedPos.z = target.position.z + altDistance; + wantedPos.x = target.position.x; + wantedPos = RotatePointAroundPivot(wantedPos, target.transform.position, offsetAngle); } float currentHeight = transform.position.y; @@ -73,7 +75,6 @@ public class CustomSmoothFollow : MonoBehaviour // Set the height of the camera transform.position = new Vector3(currentSide, currentHeight, currentDistance); - // Always look at the target Vector3 lookTarget = target.position; lookTarget.z = transform.position.z; diff --git a/IronToad_UnityProject/Assets/Scripts/TestMoveController.cs b/IronToad_UnityProject/Assets/Scripts/TestMoveController.cs index adf5328..94168c6 100644 --- a/IronToad_UnityProject/Assets/Scripts/TestMoveController.cs +++ b/IronToad_UnityProject/Assets/Scripts/TestMoveController.cs @@ -9,12 +9,12 @@ public class TestMoveController : MonoBehaviour void Update () { if (Input.GetKey(KeyCode.S) || Input.GetKey(KeyCode.DownArrow)) - transform.Translate(Vector3.back * Time.deltaTime * speed); + transform.Translate(Vector3.right * Time.deltaTime * speed); if (Input.GetKey(KeyCode.A) || Input.GetKey(KeyCode.LeftArrow)) - transform.Translate(Vector3.left * Time.deltaTime * speed); + transform.Translate(Vector3.back * Time.deltaTime * speed); if (Input.GetKey(KeyCode.W) || Input.GetKey(KeyCode.UpArrow)) - transform.Translate(Vector3.forward * Time.deltaTime * speed); + transform.Translate(Vector3.left * Time.deltaTime * speed); if (Input.GetKey(KeyCode.D) || Input.GetKey(KeyCode.RightArrow)) - transform.Translate(Vector3.right * Time.deltaTime * speed); + transform.Translate(Vector3.forward * Time.deltaTime * speed); } } diff --git a/IronToad_UnityProject/Assets/Scripts/UIPanel.cs b/IronToad_UnityProject/Assets/Scripts/UIPanel.cs index 3135ea3..8df274b 100644 --- a/IronToad_UnityProject/Assets/Scripts/UIPanel.cs +++ b/IronToad_UnityProject/Assets/Scripts/UIPanel.cs @@ -162,6 +162,7 @@ public class UIPanel : MonoBehaviour public void startGame() { NotificationServer.notify("show GameUI"); + NotificationServer.notify("play bgm", "tense:0.75"); unpauseGame(); } diff --git a/IronToad_UnityProject/Assets/Sound.meta~4053ea0ea1489f4604c1626fb0538989dd66037b.meta~927ced4c4317bc1f86f167c9b1594cec30b8e540.meta b/IronToad_UnityProject/Assets/Sound.meta similarity index 54% rename from IronToad_UnityProject/Assets/Sound.meta~4053ea0ea1489f4604c1626fb0538989dd66037b.meta~927ced4c4317bc1f86f167c9b1594cec30b8e540.meta rename to IronToad_UnityProject/Assets/Sound.meta index a8292de..f9c1bfe 100644 --- a/IronToad_UnityProject/Assets/Sound.meta~4053ea0ea1489f4604c1626fb0538989dd66037b.meta~927ced4c4317bc1f86f167c9b1594cec30b8e540.meta +++ b/IronToad_UnityProject/Assets/Sound.meta @@ -1,7 +1,6 @@ fileFormatVersion: 2 -guid: 599e1530282487c46b63fa0f00f5c846 -timeCreated: 1485039717 -licenseType: Pro +guid: 0fbabcae9313543ffbf1429aeac3664d +folderAsset: yes DefaultImporter: userData: assetBundleName: diff --git a/IronToad_UnityProject/Assets/Sound/Music.meta b/IronToad_UnityProject/Assets/Sound/Music.meta new file mode 100644 index 0000000..44ebcac --- /dev/null +++ b/IronToad_UnityProject/Assets/Sound/Music.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: be2c14b0c562c483bbe057367939b479 +folderAsset: yes +timeCreated: 1485052376 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/IronToad_UnityProject/Assets/Sound/Music/22-1245ironToad(attack).wav b/IronToad_UnityProject/Assets/Sound/Music/attack.wav similarity index 100% rename from IronToad_UnityProject/Assets/Sound/Music/22-1245ironToad(attack).wav rename to IronToad_UnityProject/Assets/Sound/Music/attack.wav diff --git a/IronToad_UnityProject/Assets/Sound/Music/22-1245ironToad(attack).wav.meta b/IronToad_UnityProject/Assets/Sound/Music/attack.wav.meta similarity index 92% rename from IronToad_UnityProject/Assets/Sound/Music/22-1245ironToad(attack).wav.meta rename to IronToad_UnityProject/Assets/Sound/Music/attack.wav.meta index b58e257..a556686 100644 --- a/IronToad_UnityProject/Assets/Sound/Music/22-1245ironToad(attack).wav.meta +++ b/IronToad_UnityProject/Assets/Sound/Music/attack.wav.meta @@ -5,11 +5,11 @@ licenseType: Free AudioImporter: serializedVersion: 6 defaultSettings: - loadType: 0 + loadType: 2 sampleRateSetting: 0 sampleRateOverride: 44100 compressionFormat: 1 - quality: 1 + quality: 0.7 conversionMode: 0 platformSettingOverrides: {} forceToMono: 0 diff --git a/IronToad_UnityProject/Assets/Sound/Music/22-1245ironToad(spotted).wav b/IronToad_UnityProject/Assets/Sound/Music/spotted.wav similarity index 100% rename from IronToad_UnityProject/Assets/Sound/Music/22-1245ironToad(spotted).wav rename to IronToad_UnityProject/Assets/Sound/Music/spotted.wav diff --git a/IronToad_UnityProject/Assets/Sound/Music/22-1245ironToad(spotted).wav.meta b/IronToad_UnityProject/Assets/Sound/Music/spotted.wav.meta similarity index 92% rename from IronToad_UnityProject/Assets/Sound/Music/22-1245ironToad(spotted).wav.meta rename to IronToad_UnityProject/Assets/Sound/Music/spotted.wav.meta index 8a9a1eb..a4aa32b 100644 --- a/IronToad_UnityProject/Assets/Sound/Music/22-1245ironToad(spotted).wav.meta +++ b/IronToad_UnityProject/Assets/Sound/Music/spotted.wav.meta @@ -5,11 +5,11 @@ licenseType: Free AudioImporter: serializedVersion: 6 defaultSettings: - loadType: 0 + loadType: 2 sampleRateSetting: 0 sampleRateOverride: 44100 compressionFormat: 1 - quality: 1 + quality: 0.7 conversionMode: 0 platformSettingOverrides: {} forceToMono: 0 diff --git a/IronToad_UnityProject/Assets/Sound/Music/22-1245ironToad(tense).wav b/IronToad_UnityProject/Assets/Sound/Music/tense.wav similarity index 100% rename from IronToad_UnityProject/Assets/Sound/Music/22-1245ironToad(tense).wav rename to IronToad_UnityProject/Assets/Sound/Music/tense.wav diff --git a/IronToad_UnityProject/Assets/Sound/Music/22-1245ironToad(tense).wav.meta b/IronToad_UnityProject/Assets/Sound/Music/tense.wav.meta similarity index 92% rename from IronToad_UnityProject/Assets/Sound/Music/22-1245ironToad(tense).wav.meta rename to IronToad_UnityProject/Assets/Sound/Music/tense.wav.meta index 7a09aec..be52b85 100644 --- a/IronToad_UnityProject/Assets/Sound/Music/22-1245ironToad(tense).wav.meta +++ b/IronToad_UnityProject/Assets/Sound/Music/tense.wav.meta @@ -5,11 +5,11 @@ licenseType: Free AudioImporter: serializedVersion: 6 defaultSettings: - loadType: 0 + loadType: 2 sampleRateSetting: 0 sampleRateOverride: 44100 compressionFormat: 1 - quality: 1 + quality: 0.7 conversionMode: 0 platformSettingOverrides: {} forceToMono: 0 diff --git a/IronToad_UnityProject/Assets/Sound/SFX.meta b/IronToad_UnityProject/Assets/Sound/SFX.meta new file mode 100644 index 0000000..2d35fa0 --- /dev/null +++ b/IronToad_UnityProject/Assets/Sound/SFX.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: bb5698073b8d847298f0287fcfbdd0de +folderAsset: yes +timeCreated: 1485052376 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/IronToad_UnityProject/Assets/Sound/SFX/assassination.wav.meta b/IronToad_UnityProject/Assets/Sound/SFX/assassination.wav.meta index efbf86b..d6e8833 100644 --- a/IronToad_UnityProject/Assets/Sound/SFX/assassination.wav.meta +++ b/IronToad_UnityProject/Assets/Sound/SFX/assassination.wav.meta @@ -9,12 +9,12 @@ AudioImporter: sampleRateSetting: 0 sampleRateOverride: 44100 compressionFormat: 1 - quality: 1 + quality: 0.7 conversionMode: 0 platformSettingOverrides: {} forceToMono: 0 normalize: 1 - preloadAudioData: 1 + preloadAudioData: 0 loadInBackground: 0 3D: 1 userData: diff --git a/IronToad_UnityProject/Assets/Sound/SFX/createWave.wav.meta b/IronToad_UnityProject/Assets/Sound/SFX/createWave.wav.meta index ba6ea07..c28f259 100644 --- a/IronToad_UnityProject/Assets/Sound/SFX/createWave.wav.meta +++ b/IronToad_UnityProject/Assets/Sound/SFX/createWave.wav.meta @@ -9,12 +9,12 @@ AudioImporter: sampleRateSetting: 0 sampleRateOverride: 44100 compressionFormat: 1 - quality: 1 + quality: 0.7 conversionMode: 0 platformSettingOverrides: {} forceToMono: 0 normalize: 1 - preloadAudioData: 1 + preloadAudioData: 0 loadInBackground: 0 3D: 1 userData: diff --git a/IronToad_UnityProject/Assets/Sound/SFX/createWave_2.wav.meta b/IronToad_UnityProject/Assets/Sound/SFX/createWave_2.wav.meta index 90bcef1..5e664e8 100644 --- a/IronToad_UnityProject/Assets/Sound/SFX/createWave_2.wav.meta +++ b/IronToad_UnityProject/Assets/Sound/SFX/createWave_2.wav.meta @@ -9,12 +9,12 @@ AudioImporter: sampleRateSetting: 0 sampleRateOverride: 44100 compressionFormat: 1 - quality: 1 + quality: 0.7 conversionMode: 0 platformSettingOverrides: {} forceToMono: 0 normalize: 1 - preloadAudioData: 1 + preloadAudioData: 0 loadInBackground: 0 3D: 1 userData: diff --git a/IronToad_UnityProject/Assets/Sound/SFX/createWave_3.wav.meta b/IronToad_UnityProject/Assets/Sound/SFX/createWave_3.wav.meta index 35d4d69..25a6976 100644 --- a/IronToad_UnityProject/Assets/Sound/SFX/createWave_3.wav.meta +++ b/IronToad_UnityProject/Assets/Sound/SFX/createWave_3.wav.meta @@ -9,12 +9,12 @@ AudioImporter: sampleRateSetting: 0 sampleRateOverride: 44100 compressionFormat: 1 - quality: 1 + quality: 0.7 conversionMode: 0 platformSettingOverrides: {} forceToMono: 0 normalize: 1 - preloadAudioData: 1 + preloadAudioData: 0 loadInBackground: 0 3D: 1 userData: diff --git a/IronToad_UnityProject/Assets/Sound/SFX/oceanAmbience.wav.meta b/IronToad_UnityProject/Assets/Sound/SFX/oceanAmbience.wav.meta index 465f525..3846181 100644 --- a/IronToad_UnityProject/Assets/Sound/SFX/oceanAmbience.wav.meta +++ b/IronToad_UnityProject/Assets/Sound/SFX/oceanAmbience.wav.meta @@ -5,11 +5,11 @@ licenseType: Free AudioImporter: serializedVersion: 6 defaultSettings: - loadType: 0 + loadType: 2 sampleRateSetting: 0 sampleRateOverride: 44100 compressionFormat: 1 - quality: 1 + quality: 0.7 conversionMode: 0 platformSettingOverrides: {} forceToMono: 0 diff --git a/IronToad_UnityProject/Assets/Sound/SFX/rockWater_1.wav.meta b/IronToad_UnityProject/Assets/Sound/SFX/rockWater_1.wav.meta index 9472e49..00b8793 100644 --- a/IronToad_UnityProject/Assets/Sound/SFX/rockWater_1.wav.meta +++ b/IronToad_UnityProject/Assets/Sound/SFX/rockWater_1.wav.meta @@ -9,12 +9,12 @@ AudioImporter: sampleRateSetting: 0 sampleRateOverride: 44100 compressionFormat: 1 - quality: 1 + quality: 0.7 conversionMode: 0 platformSettingOverrides: {} forceToMono: 0 normalize: 1 - preloadAudioData: 1 + preloadAudioData: 0 loadInBackground: 0 3D: 1 userData: diff --git a/IronToad_UnityProject/Assets/Sound/SFX/rockWater_2.wav.meta b/IronToad_UnityProject/Assets/Sound/SFX/rockWater_2.wav.meta index a3e20ce..2d79e6c 100644 --- a/IronToad_UnityProject/Assets/Sound/SFX/rockWater_2.wav.meta +++ b/IronToad_UnityProject/Assets/Sound/SFX/rockWater_2.wav.meta @@ -9,12 +9,12 @@ AudioImporter: sampleRateSetting: 0 sampleRateOverride: 44100 compressionFormat: 1 - quality: 1 + quality: 0.7 conversionMode: 0 platformSettingOverrides: {} forceToMono: 0 normalize: 1 - preloadAudioData: 1 + preloadAudioData: 0 loadInBackground: 0 3D: 1 userData: diff --git a/IronToad_UnityProject/Assets/Sound/SFX/rockWater_3.wav.meta b/IronToad_UnityProject/Assets/Sound/SFX/rockWater_3.wav.meta index 44f4631..79c3a48 100644 --- a/IronToad_UnityProject/Assets/Sound/SFX/rockWater_3.wav.meta +++ b/IronToad_UnityProject/Assets/Sound/SFX/rockWater_3.wav.meta @@ -9,12 +9,12 @@ AudioImporter: sampleRateSetting: 0 sampleRateOverride: 44100 compressionFormat: 1 - quality: 1 + quality: 0.7 conversionMode: 0 platformSettingOverrides: {} forceToMono: 0 normalize: 1 - preloadAudioData: 1 + preloadAudioData: 0 loadInBackground: 0 3D: 1 userData: diff --git a/IronToad_UnityProject/Assets/Sound/SFX/runAground.wav.meta b/IronToad_UnityProject/Assets/Sound/SFX/runAground.wav.meta index 61d8e34..0d018fd 100644 --- a/IronToad_UnityProject/Assets/Sound/SFX/runAground.wav.meta +++ b/IronToad_UnityProject/Assets/Sound/SFX/runAground.wav.meta @@ -9,12 +9,12 @@ AudioImporter: sampleRateSetting: 0 sampleRateOverride: 44100 compressionFormat: 1 - quality: 1 + quality: 0.7 conversionMode: 0 platformSettingOverrides: {} forceToMono: 0 normalize: 1 - preloadAudioData: 1 + preloadAudioData: 0 loadInBackground: 0 3D: 1 userData: diff --git a/IronToad_UnityProject/Assets/Sound/SFX/shipSpotted.wav.meta b/IronToad_UnityProject/Assets/Sound/SFX/shipSpotted.wav.meta index d4ebbdd..15eed3e 100644 --- a/IronToad_UnityProject/Assets/Sound/SFX/shipSpotted.wav.meta +++ b/IronToad_UnityProject/Assets/Sound/SFX/shipSpotted.wav.meta @@ -9,12 +9,12 @@ AudioImporter: sampleRateSetting: 0 sampleRateOverride: 44100 compressionFormat: 1 - quality: 1 + quality: 0.7 conversionMode: 0 platformSettingOverrides: {} forceToMono: 0 normalize: 1 - preloadAudioData: 1 + preloadAudioData: 0 loadInBackground: 0 3D: 1 userData: diff --git a/IronToad_UnityProject/Assets/Sound/SFX/sinkingShip.wav.meta b/IronToad_UnityProject/Assets/Sound/SFX/sinkingShip.wav.meta index 148c11c..e6eafc3 100644 --- a/IronToad_UnityProject/Assets/Sound/SFX/sinkingShip.wav.meta +++ b/IronToad_UnityProject/Assets/Sound/SFX/sinkingShip.wav.meta @@ -9,12 +9,12 @@ AudioImporter: sampleRateSetting: 0 sampleRateOverride: 44100 compressionFormat: 1 - quality: 1 + quality: 0.7 conversionMode: 0 platformSettingOverrides: {} forceToMono: 0 normalize: 1 - preloadAudioData: 1 + preloadAudioData: 0 loadInBackground: 0 3D: 1 userData: diff --git a/IronToad_UnityProject/Assets/Sound/SFX/spottedDialogue.wav.meta b/IronToad_UnityProject/Assets/Sound/SFX/spottedDialogue.wav.meta index cf7471b..fa08255 100644 --- a/IronToad_UnityProject/Assets/Sound/SFX/spottedDialogue.wav.meta +++ b/IronToad_UnityProject/Assets/Sound/SFX/spottedDialogue.wav.meta @@ -9,12 +9,12 @@ AudioImporter: sampleRateSetting: 0 sampleRateOverride: 44100 compressionFormat: 1 - quality: 1 + quality: 0.7 conversionMode: 0 platformSettingOverrides: {} forceToMono: 0 normalize: 1 - preloadAudioData: 1 + preloadAudioData: 0 loadInBackground: 0 3D: 1 userData: diff --git a/IronToad_UnityProject/Assets/_Scenes/LighthouseTestScene.unity b/IronToad_UnityProject/Assets/_Scenes/LighthouseTestScene.unity index bf45fe9..e7d48fe 100644 Binary files a/IronToad_UnityProject/Assets/_Scenes/LighthouseTestScene.unity and b/IronToad_UnityProject/Assets/_Scenes/LighthouseTestScene.unity differ