14 lines
397 B
C#
14 lines
397 B
C#
using UnityEngine;
|
|
|
|
namespace BaseGames.AI
|
|
{
|
|
/// <summary>感知能力接口(第 3 阶段由 SensorAdapter 适配感知系统)。</summary>
|
|
public interface ISensor
|
|
{
|
|
bool SeesPlayer();
|
|
bool InRange(float range); // 内部用平方距离比较
|
|
bool LostFor(float seconds); // 丢失玩家已持续 seconds
|
|
Vector2 LastKnown { get; }
|
|
}
|
|
}
|