|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public async UniTask Initialize() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | await UniTask.Delay(200); | 
|---|
|  |  |  | await Co_LoadMainfestFile("audio"); | 
|---|
|  |  |  | // await Co_LoadMainfestFile("video"); | 
|---|
|  |  |  | await Co_LoadMainfestFile("mobeffectshader"); | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public UnityEngine.Object Sync_LoadAsset(string assetBundleName, string assetName, Type _type = null) | 
|---|
|  |  |  | { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (string.IsNullOrEmpty(assetName)) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | Debug.LogErrorFormat("Sync_LoadAsset(): {0}, 出现错误 => 存入的AssetName为null. ", assetName); | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | #if UNITY_5||UNITY_5_3_OR_NEWER | 
|---|
|  |  |  | assetBundleName = assetBundleName.ToLower(); | 
|---|
|  |  |  | #endif | 
|---|