31 lines
814 B
C#
31 lines
814 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}";
|
|
}
|
|
|
|
public static string GetMapTexure(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";
|
|
}
|
|
|
|
public static string GetObsPath(int mapId, string fileName)
|
|
{
|
|
return $"{Application.dataPath}/GameAssets/Maps/{mapId}/XML/{fileName}.bytes";
|
|
}
|
|
#endregion
|
|
}
|