(client) chore

This commit is contained in:
m0_75251201
2025-08-26 16:00:58 +08:00
parent efbf4f824a
commit f04c89046b
51 changed files with 2390 additions and 617 deletions

View File

@ -1,5 +1,6 @@
using System;
using Data;
using Managers;
using UnityEngine;
namespace AI
@ -12,14 +13,9 @@ namespace AI
}
public static bool IsPlayer(Entity.Entity entity)
{
return entity.PlayerControlled;
}
public static bool HasEnemyInSight(Entity.Entity entity)
{
return entity.visionRangeDetector.GetNearestNEntitiesByRelation(1, Relation.Hostile).Count > 0;
return Managers.EntityManage.Instance.ExistsHostile(entity.currentDimensionId,entity.entityPrefab);
}
}
}