6 lines
291 B
C#
6 lines
291 B
C#
public interface IInteractable
|
|
{/// 玩家与交互对象进行交互时调用
|
|
void OnInteract();
|
|
void OnEnterInteractionRange(); // 玩家进入交互范围时调用,用于显示提示
|
|
void OnExitInteractionRange(); // 玩家离开交互范围时调用,用于隐藏提示
|
|
} |