2026-05-15 공격과 피격
This commit is contained in:
26
Assets/02_Scripts/Combat/ComboNode.cs
Normal file
26
Assets/02_Scripts/Combat/ComboNode.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
public enum ComboInputType
|
||||
{
|
||||
Punch,
|
||||
Kick
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class ComboTransition
|
||||
{
|
||||
public ComboInputType Trigger;
|
||||
public ComboNode Next;
|
||||
public float ForwardStep = 0f;
|
||||
public float ForwardStepDuration = 0.1f;
|
||||
}
|
||||
|
||||
[CreateAssetMenu(fileName = "ComboNode", menuName = "Combat/ComboNode")]
|
||||
public class ComboNode : ScriptableObject
|
||||
{
|
||||
public string NodeName;
|
||||
public AttackData Attack;
|
||||
public float ComboWindow = 0.8f;
|
||||
public ComboTransition[] Transitions;
|
||||
}
|
||||
Reference in New Issue
Block a user