2025-06-14 13:46:24 +08:00
|
|
|
|
using System.IO;
|
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
|
|
public class PathUtil
|
|
|
|
|
|
{
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD>Ҽ<EFBFBD><D2BC><EFBFBD>texture ·<><C2B7>
|
|
|
|
|
|
public static string GetTexture(int mapId, string name, string suffix)
|
|
|
|
|
|
{
|
|
|
|
|
|
return $"{Application.dataPath}/GameAssets/Maps/{mapId}/Texture/{name}.{suffix}";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-06-15 20:14:45 +08:00
|
|
|
|
public static string GetMapTexure(int mapId, string name, string suffix)
|
|
|
|
|
|
{
|
|
|
|
|
|
return $"{Application.dataPath}/GameAssets/Maps/{mapId}/Texture/{name}.{suffix}";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-06-14 13:46:24 +08:00
|
|
|
|
|
|
|
|
|
|
#region XML
|
|
|
|
|
|
|
|
|
|
|
|
public static string GetXmlPath(int mapId, string fileName)
|
|
|
|
|
|
{
|
|
|
|
|
|
return $"{Application.dataPath}/GameAssets/Maps/{mapId}/XML/{fileName}.xml";
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
}
|