2026-04-13 스킬시스템 진행중

This commit is contained in:
2026-04-13 01:42:32 +09:00
parent ba93dc6d2f
commit b2cceb5b27
20 changed files with 1243 additions and 37 deletions

View File

@@ -1,4 +1,4 @@
public class SkillInstance
public class SkillInstance : IUseableRuntime
{
public SkillData Data { get; private set; }
public int Level { get; set; } = 1;
@@ -23,4 +23,12 @@ public void TickCooldown(float deltaTime)
if (CooldownTimer > 0f)
CooldownTimer -= deltaTime;
}
public void Execute(UseContext ctx)
{
SkillModule skillModule = ctx.Caster.GetComponent<SkillModule>(); //사용자(캐스터)의 스킬 모듈
if (skillModule == null) return;
skillModule.SkillInputByData(Data, ctx.UseInputState);
}
}