19 lines
443 B
C#
19 lines
443 B
C#
using UnityEngine;
|
|
|
|
namespace OnlyScove.Scripts
|
|
{
|
|
public interface IInteractable
|
|
{
|
|
string InteractionPrompt { get; }
|
|
|
|
// Thực hiện tương tác
|
|
void OnInteract(GameObject interactor);
|
|
|
|
// Xử lý khi người chơi nhìn vào vật thể
|
|
void OnHoverEnter();
|
|
|
|
// Xử lý khi người chơi rời mắt khỏi vật thể
|
|
void OnHoverExit();
|
|
}
|
|
}
|