Files
2025TapTapGameJam/Assets/Script/Gameplay/Interface/IInteractable.cs

9 lines
245 B
C#
Raw Normal View History

2025-10-15 21:31:13 +08:00
using UnityEngine;
namespace Share
{
public interface IInteractable
{
string GetInteractPrompt(); // 返回提示文字例如“按E打开门”
void Interact(GameObject interactor); // 当玩家交互时触发
}
}