Files
ichni_Official/Assets/Scripts/Menu/SoundBankInitializer.cs

22 lines
551 B
C#
Raw Normal View History

2025-06-03 02:42:28 -04:00
using System.Collections;
using System.Collections.Generic;
using AK.Wwise;
using UnityEngine;
namespace Ichni.Menu
{
public class SoundBankInitializer : MonoBehaviour
{
2025-08-27 21:45:18 -04:00
public bool initialized = false;
2025-06-03 02:42:28 -04:00
public List<Bank> soundBanks;
private void Awake()
{
2025-08-27 21:45:18 -04:00
if (initialized) return;
initialized = true;
2025-06-03 02:42:28 -04:00
soundBanks.ForEach(bank => bank.Load());
Debug.Log("AudioManager initialized with " + soundBanks.Count + " sound banks loaded.");
}
}
}