第一次提交
This commit is contained in:
20
Assets/Scripts/Utils/PathUtil.cs
Normal file
20
Assets/Scripts/Utils/PathUtil.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
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}";
|
||||
}
|
||||
|
||||
|
||||
#region XML
|
||||
|
||||
public static string GetXmlPath(int mapId, string fileName)
|
||||
{
|
||||
return $"{Application.dataPath}/GameAssets/Maps/{mapId}/XML/{fileName}.xml";
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user