37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
|
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";
|
|||
|
}
|
|||
|
}
|
|||
|
}
|