Files
ProjectMD/Assets/Scripts/Player/PlayerActionData.cs

16 lines
664 B
C#

using UnityEngine;
public abstract class PlayerActionData : ScriptableObject
{
public string actionName;
public float duration; // 액션 자체가 시간을 가짐
public string animTrigger;
public float impactDelay; // 애니메이션 원본 길이 기준 타격 지연 시간
public float baseSpeed = 1f; // 기본 재생 속도 (1.0 = 100%)
[Header("Repeat Settings")]
public bool canRepeat = true; // [추가] 꾹 눌렀을 때 반복할지 여부
// 대상(target)은 있을 수도 있고(채광), 없을 수도 있음(회복/대쉬)
public abstract void ExecuteEffect(GameObject performer, GameObject target);
}