인터랙션 시스템 및 터널 기능 생성
This commit is contained in:
10
Assets/Scripts/IInteractable.cs
Normal file
10
Assets/Scripts/IInteractable.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using UnityEngine;
|
||||
|
||||
public interface IInteractable
|
||||
{
|
||||
// 누가 상호작용을 시도했는지 알려주기 위해 GameObject를 인자로 받습니다.
|
||||
void Interact(GameObject user);
|
||||
|
||||
// 선택 사항: 화면에 띄울 메시지를 반환하는 기능 (예: "통로 이용하기 [E]")
|
||||
string GetInteractionText();
|
||||
}
|
||||
Reference in New Issue
Block a user