(client) chore
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user