인터랙션 및 액션 구조 생성
기본 채광 인터랙션 생성 채광 인터랙션을 위한 인터랙션 대상인 광산 생성 Kaykit Resource 애셋 추가
This commit is contained in:
28
Assets/Scripts/IAction.cs
Normal file
28
Assets/Scripts/IAction.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
namespace Northbound
|
||||
{
|
||||
/// <summary>
|
||||
/// 상호작용 대상 없이도 실행 가능한 행동 (공격, 점프 등)
|
||||
/// </summary>
|
||||
public interface IAction
|
||||
{
|
||||
/// <summary>
|
||||
/// 액션 실행 가능한지 여부 (쿨다운, 스테미나 등)
|
||||
/// </summary>
|
||||
bool CanExecute(ulong playerId);
|
||||
|
||||
/// <summary>
|
||||
/// 액션 실행
|
||||
/// </summary>
|
||||
void Execute(ulong playerId);
|
||||
|
||||
/// <summary>
|
||||
/// 액션 이름
|
||||
/// </summary>
|
||||
string GetActionName();
|
||||
|
||||
/// <summary>
|
||||
/// 플레이어가 재생할 애니메이션 트리거 이름 (없으면 null 또는 빈 문자열)
|
||||
/// </summary>
|
||||
string GetActionAnimation();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user