fix(enemy): BuildAttackSelector 表达式上下文全限定 AbilityCategory(消歧义于 Abilities 属性)
This commit is contained in:
@@ -570,7 +570,7 @@ namespace BaseGames.Enemies
|
|||||||
{
|
{
|
||||||
var ab = all[i];
|
var ab = all[i];
|
||||||
if (ab == null || ab.Config == null) continue;
|
if (ab == null || ab.Config == null) continue;
|
||||||
if (ab.Config.category != Abilities.AbilityCategory.Attack) continue;
|
if (ab.Config.category != BaseGames.Enemies.Abilities.AbilityCategory.Attack) continue;
|
||||||
if (ab.Config.rangeRadius <= 0f)
|
if (ab.Config.rangeRadius <= 0f)
|
||||||
Debug.LogError($"[EnemyBase] 攻击招 '{ab.Config.abilityId}' 的 rangeRadius<=0," +
|
Debug.LogError($"[EnemyBase] 攻击招 '{ab.Config.abilityId}' 的 rangeRadius<=0," +
|
||||||
"永远够不着玩家。请在其 EnemyAbilitySO 上配置攻击触发半径。", ab);
|
"永远够不着玩家。请在其 EnemyAbilitySO 上配置攻击触发半径。", ab);
|
||||||
|
|||||||
Reference in New Issue
Block a user