Пример #1
0
 void OnLoadResult(BankLoadResponseStruct response)
 {
     loadingBanks.Remove(response.atom);
     if (response.loadResult.Sucess())
     {
         loadedBanks.Add(response.atom);
     }
     if (response.callback != null)
     {
         response.callback(response);
     }
     else
     {
         AudioUtil.AssertProcessResult(response.loadResult, "load {0}", response.atom.BankName);
     }
 }
Пример #2
0
 private void DefaultLoadHandler(BankLoadResponseStruct response)
 {
     AudioUtil.AssertProcessResult(response.loadResult, "load {0}", response.atom.BankName);
 }
Пример #3
0
        private void SwitchStateFinalHandler(AKSwitchAtom atom, GameObject target)
        {
            AKRESULT result = AkSoundEngine.SetSwitch(atom.config.Group, atom.currState, target);

            AudioUtil.AssertProcessResult(result, "set switch {1} {0}", atom.currState, target.name);
        }