diff --git a/Assets/Code/Audio/WielderAudio.cs b/Assets/Code/Audio/WielderAudio.cs index 00f6a3cb..55ba624f 100644 --- a/Assets/Code/Audio/WielderAudio.cs +++ b/Assets/Code/Audio/WielderAudio.cs @@ -1,3 +1,4 @@ +using System.Collections; using FMOD.Studio; using FMODUnity; using SaintsField; @@ -19,8 +20,11 @@ public class WielderAudio : MonoBehaviour private PARAMETER_ID paramLifeState; - private void Awake() + private IEnumerator Start() { + while (!RuntimeManager.HaveAllBanksLoaded) + yield return null; + EventDescription description = RuntimeManager.GetEventDescription(hurtEvent); description.getParameterDescriptionByName("Life State", out PARAMETER_DESCRIPTION paramDesc); paramLifeState = paramDesc.id; diff --git a/Assets/Code/Audio/WorldAudio.cs b/Assets/Code/Audio/WorldAudio.cs index b0c6fc47..d7241755 100644 --- a/Assets/Code/Audio/WorldAudio.cs +++ b/Assets/Code/Audio/WorldAudio.cs @@ -1,3 +1,4 @@ +using System.Collections; using FMOD.Studio; using FMODUnity; using Tulip.Data; @@ -19,8 +20,11 @@ public class WorldAudio : MonoBehaviour private PARAMETER_ID paramMaterial; private PARAMETER_ID paramTerraformType; - private void Awake() + private IEnumerator Start() { + while (!RuntimeManager.HaveAllBanksLoaded) + yield return null; + EventDescription description = RuntimeManager.GetEventDescription(tilePlacedEvent); description.getParameterDescriptionByName("Material", out PARAMETER_DESCRIPTION paramDesc);