private static void CreateIfMissing(InAudioBankLink bankLink) { if (bankLink != null && bankLink.Type == AudioBankTypes.Link) { bankLink.LoadedBank = BankLoader.LoadBank(bankLink); if (bankLink.LoadedBank == null) { GameObject go = BankLoader.GetBankGO(bankLink.ID); if (go == null) { SaveAndLoad.CreateAudioBank(bankLink.ID); Debug.Log("Created missing Bank " + bankLink.Name + " with id " + bankLink.ID); } else { var bank = go.AddComponent <InAudioBank>(); bank.GUID = bankLink.ID; Debug.Log("Created missing Bank \n" + bankLink.Name + "\n with id " + bankLink.ID); } } } }
public void UnLoad(InMusicGroup musicGroup) { BankLoader.Unload(musicGroup.GetBank()); }
public bool Load(InMusicGroup musicGroup) { return(BankLoader.Load(musicGroup.GetBank())); }