update
This commit is contained in:
@@ -1,8 +1,18 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace OnlyScove.Scripts
|
||||
{
|
||||
public interface IInteractable
|
||||
{
|
||||
string InteractionPrompt { get; }
|
||||
// void OnInteract(PlayerStateMachine player);
|
||||
|
||||
// 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user