9 lines
245 B
C#
9 lines
245 B
C#
|
using UnityEngine;
|
|||
|
namespace Share
|
|||
|
{
|
|||
|
public interface IInteractable
|
|||
|
{
|
|||
|
string GetInteractPrompt(); // 返回提示文字,例如“按E打开门”
|
|||
|
void Interact(GameObject interactor); // 当玩家交互时触发
|
|||
|
}
|
|||
|
}
|