zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Unity/Assets/Hotfix/Logic/Behaviour/Game/Helper/PathHelper.cs

37 lines
1.1 KiB
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ET
{
public class PathHelper
{
//AB
public const string ConfigAB = "download/config.assetbundle";
//Asset
public const string GlobalHotfixConfig = "Assets/Download/Config/GlobalConfig.txt";
public const string Config = "Assets/Download/Config/Config.prefab";
public const string ResHolder = "Assets/Download/Config/Config.prefab";
public static string GetUIPath(string UIname)
{
return $"Assets/Download/UI/UIPrefab/{UIname}.prefab";
}
public static string GetRolePrefabPath(string UIname)
{
return $"Assets/Download/Role/RolePrefab/Player/{UIname}.prefab";
}
public static string GetDataTablePath(string dataName)
{
return $"Assets/Download/DataTable/{dataName}.bytes";
}
public static string GetScenePath(string name)
{
return $"download/scenes/{name.ToLower()}.assetbundle";
}
}
}