迁移数据表到 Luban,移除 JsonNet、EnumUtility
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using GameFramework;
|
||||
using System;
|
||||
using GameFramework;
|
||||
|
||||
namespace SepCore.CustomUtility
|
||||
{
|
||||
@@ -39,9 +40,19 @@ namespace SepCore.CustomUtility
|
||||
return Utility.Text.Format("Assets/GameMain/Sounds/{0}.wav", assetName);
|
||||
}
|
||||
|
||||
public static string GetEntityAsset(string assetName)
|
||||
public static string GetEntityAsset(string assetPath)
|
||||
{
|
||||
return Utility.Text.Format("Assets/GameMain/Entities/{0}.prefab", assetName);
|
||||
if (string.IsNullOrEmpty(assetPath))
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
if (assetPath.EndsWith(".prefab", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return Utility.Text.Format("Assets/GameMain/Entities/{0}", assetPath);
|
||||
}
|
||||
|
||||
return Utility.Text.Format("Assets/GameMain/Entities/{0}.prefab", assetPath);
|
||||
}
|
||||
|
||||
public static string GetUIFormAsset(string assetName)
|
||||
|
||||
Reference in New Issue
Block a user