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

10 lines
316 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using UnityEngine;
namespace Script.Gameplay.Interface
{
public interface IInteractable
{
public bool IsEnableInteract { get; set; }
string GetInteractPrompt(); // 返回提示文字例如“按E打开门”
void Interact(GameObject interactor); // 当玩家交互时触发
}
}