| | |
| | | switch (_assetPath)
|
| | | {
|
| | | case AssetPath.Resource:
|
| | | path = AssetVersionUtility.GetAssetFilePath(StringUtility.Contact("config/", fileName, ".txt"));
|
| | | if (File.Exists(path))
|
| | | {
|
| | | lines = File.ReadAllLines(path, Encoding.UTF8);
|
| | | }
|
| | | else
|
| | | {
|
| | | path = StringUtility.Contact("Config/", fileName);
|
| | | var textAsset = Resources.Load<TextAsset>(path);
|
| | | lines = textAsset.text.Split(new string[] { "\r\n" }, StringSplitOptions.None);
|
| | | }
|
| | | break;
|
| | | case AssetPath.ResourceOut:
|
| | | path = StringUtility.Contact(ResourcesPath.CONFIG_FODLER, "/", fileName, ".txt");
|