using UnityEngine; namespace ET.Client { public static class LayerNames { /// /// UI层 /// public const string UI = "UI"; /// /// 游戏单位层 /// public const string UNIT = "Unit"; /// /// 地形层 /// public const string MAP = "Map"; /// /// 默认层 /// public const string DEFAULT = "Default"; public const string HIDDEN = "Hidden"; /// /// 通过Layers名字得到对应层 /// /// /// public static int GetLayerInt(string name) { return LayerMask.NameToLayer(name); } public static string GetLayerStr(int name) { return LayerMask.LayerToName(name); } } }