| | |
| | | yield return StartCoroutine(Co_LoadMainfestFile("maps"));
|
| | | yield return StartCoroutine(Co_LoadMainfestFile("graphic"));
|
| | | yield return StartCoroutine(Co_LoadMainfestFile("ui"));
|
| | | yield return StartCoroutine(Co_LoadMainfestFile("lua"));
|
| | |
|
| | | initialized = true;
|
| | | }
|
| | |
| | | } |
| | | else |
| | | { |
| | | var assetBundle = StringUtility.Contact("lua/", file).ToLower(); |
| | | var splits = file.Split('/'); |
| | | var assetName = splits[splits.Length - 1]; |
| | | var index = file.LastIndexOf("/"); |
| | | var assetBundle = StringUtility.Contact("lua/", file.Substring(0, index)).ToLower(); |
| | | var assetName = file.Substring(index + 1, file.Length - (index + 1)); |
| | | var asset = AssetBundleUtility.Instance.Sync_LoadAsset(assetBundle, assetName) as TextAsset; |
| | | return asset.text; |
| | | } |