public void _OnComplated_DownloadAudioWWW(IDownloadedItem wItem, object obj) { if (!this) { return; } if (!base.enabled) { return; } if (wItem.canAccessAssetBundle && !wItem.isCanceled) { TsAudio.RequestData requestData = obj as TsAudio.RequestData; TsAudio tsAudio = TsAudioCreator.Create(requestData.baseData); if (tsAudio != null && this.audioSrc != null) { tsAudio._TempSet_playType = TsAudio._EPlayType.PLAY_ONE_SHOT; tsAudio.RefAudioSource = this.audioSrc; tsAudio.RefAudioClip = (wItem.mainAsset as AudioClip); tsAudio.PlayOneShot(); } else { Debug.LogWarning("TsAudio or AudioSource is null."); } } }