2026-04-13 스킬시스템 진행중
This commit is contained in:
@@ -1,12 +1,24 @@
|
||||
using UnityEngine;
|
||||
|
||||
[System.Serializable]
|
||||
public abstract class UseableEntry : ScriptableObject
|
||||
public abstract class UseableEntry : ScriptableObject
|
||||
{
|
||||
[Header("기본 정보")]
|
||||
public string EntryName;
|
||||
[TextArea] public string EntryDesc;
|
||||
public Sprite Icon;
|
||||
|
||||
public abstract void Use();
|
||||
|
||||
public abstract IUseableRuntime CreateRuntime();
|
||||
}
|
||||
|
||||
public interface IUseableRuntime
|
||||
{
|
||||
public void Execute(UseContext ctx);
|
||||
}
|
||||
|
||||
public struct UseContext
|
||||
{
|
||||
public GameObject Caster;
|
||||
public GameObject Target;
|
||||
public InputState UseInputState;
|
||||
}
|
||||
Reference in New Issue
Block a user