49 lines
1.3 KiB
C#
49 lines
1.3 KiB
C#
namespace G
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public static class GameLayer
|
|
{
|
|
public const int UILayer = 5;
|
|
public const int UnitLayer = 8;
|
|
public const int AllyLayer = 9;
|
|
public const int ObjectLayer = 10;
|
|
|
|
public const int General = 12;
|
|
public const int EnemyAttack = 13;
|
|
public const int GeneralAttack = 14;
|
|
|
|
public const int PlayerAttack = 14;
|
|
/// <summary>
|
|
/// 晕眩
|
|
/// </summary>
|
|
public const int StunAttack = 16;
|
|
public const int RiseupAttack = 17;
|
|
public const int ShockAttack = 18;
|
|
public const int DarkAttack = 19;
|
|
public const int NormalAttack = 20;
|
|
public const int PowerAttack = 21;
|
|
public const int SkillAttack = 22;
|
|
public const int PoisonAttack = 23;
|
|
public const int DeathAttack = 24;
|
|
|
|
public const int PierceAttack = 26;
|
|
public const int CrowdAttack = 27;
|
|
public const int PushAttack = 28;
|
|
public const int RiseupAttack2 = 29;
|
|
public const int BurnAttack = 30;
|
|
public const int ColdAttack = 31;
|
|
|
|
public static void SetGameObjectLayer(UnityEngine.GameObject go, int layer)
|
|
{
|
|
var resultList = F.ListPool<UnityEngine.Transform>.Get();
|
|
go.GetComponentsInChildren(true, resultList);
|
|
foreach (var tr in resultList)
|
|
{
|
|
tr.gameObject.layer = layer;
|
|
}
|
|
F.ListPool<UnityEngine.Transform>.Release(resultList);
|
|
}
|
|
}
|
|
} |