2025-10-15 21:31:13 +08:00
|
|
|
|
using UnityEngine;
|
2025-10-20 09:02:15 +08:00
|
|
|
|
namespace Script.Gameplay.Interface
|
2025-10-15 21:31:13 +08:00
|
|
|
|
{
|
|
|
|
|
|
public interface IInteractable
|
|
|
|
|
|
{
|
2025-10-22 17:34:58 +08:00
|
|
|
|
public bool IsEnableInteract { get; set; }
|
2025-10-15 21:31:13 +08:00
|
|
|
|
string GetInteractPrompt(); // 返回提示文字,例如“按E打开门”
|
|
|
|
|
|
void Interact(GameObject interactor); // 当玩家交互时触发
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|