using System; using Wwise.Wooduan.Core; public partial class AkSoundEngineController { public Action Update; public void LateUpdate() { #if UNITY_EDITOR if (!AkSoundEngine.EditorIsSoundEngineLoaded) return; #endif Update?.Invoke(); //Execute callbacks that occurred in last frame (not the current update) SpatialAudioManager.Update(); AkCallbackManager.PostCallbacks(); AkBankManager.DoUnloadBanks(); AkSoundEngine.RenderAudio(); } }