Ejemplo n.º 1
0
 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);
             }
         }
     }
 }
Ejemplo n.º 2
0
 public void UnLoad(InMusicGroup musicGroup)
 {
     BankLoader.Unload(musicGroup.GetBank());
 }
Ejemplo n.º 3
0
 public bool Load(InMusicGroup musicGroup)
 {
     return(BankLoader.Load(musicGroup.GetBank()));
 }