21 lines
466 B
C#
21 lines
466 B
C#
using System.IO;
|
||
using UnityEngine;
|
||
|
||
public class PathUtil
|
||
{
|
||
//地形贴图(挂件)texture 路径
|
||
public static string GetTexture(int mapId, string name, string suffix)
|
||
{
|
||
return $"{Application.dataPath}/GameAssets/Maps/{mapId}/Texture/{name}.{suffix}";
|
||
}
|
||
|
||
|
||
#region XML
|
||
|
||
public static string GetXmlPath(int mapId, string fileName)
|
||
{
|
||
return $"{Application.dataPath}/GameAssets/Maps/{mapId}/XML/{fileName}.xml";
|
||
}
|
||
#endregion
|
||
}
|