refactor(Facility): 使用继承让所有机关都拥有了独自的 可交互 可编辑 可连接设定。大面积重构

This commit is contained in:
2025-10-22 17:34:58 +08:00
parent acd8282ff0
commit 5198a80318
61 changed files with 1516 additions and 889 deletions

View File

@@ -3,9 +3,8 @@ namespace Script.Gameplay.Interface
{
public interface IInteractable
{
public bool IsEnableInteract { get; set; }
string GetInteractPrompt(); // 返回提示文字例如“按E打开门”
void Interact(GameObject interactor); // 当玩家交互时触发
void OnGazeEnter(GameObject editor); // 玩家开始注视时触发
void OnGazeExit(GameObject editor); // 玩家停止注视时触发
}
}