액션 및 인터랙션 정의 및 기존 인터랙션 및 채광 코드 구조 개선
This commit is contained in:
11
Assets/Scripts/Player/PlayerActionData.cs
Normal file
11
Assets/Scripts/Player/PlayerActionData.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using UnityEngine;
|
||||
|
||||
public abstract class PlayerActionData : ScriptableObject
|
||||
{
|
||||
public string actionName;
|
||||
public float duration; // 액션 자체가 시간을 가짐
|
||||
public string animTrigger;
|
||||
|
||||
// 대상(target)은 있을 수도 있고(채광), 없을 수도 있음(회복/대쉬)
|
||||
public abstract void ExecuteEffect(GameObject performer, GameObject target);
|
||||
}
|
||||
Reference in New Issue
Block a user