2026-05-15 공격과 피격

This commit is contained in:
2026-05-15 15:28:13 +09:00
parent 764bc305f7
commit ec353d0fd4
81 changed files with 879 additions and 57 deletions

View File

@@ -10,6 +10,8 @@ public class InputManager : MonoBehaviour, GameInput.IPlayerActions
public event Action<Vector2> OnMove_Event;
public event Action OnJump_Event;
public event Action OnPunch_Event;
public event Action OnKick_Event;
private void Awake()
{
@@ -38,4 +40,18 @@ public void OnJump(InputAction.CallbackContext ctx)
if (ctx.phase == InputActionPhase.Started)
OnJump_Event?.Invoke();
}
public void OnPunch(InputAction.CallbackContext ctx)
{
if (ctx.phase == InputActionPhase.Started)
OnPunch_Event?.Invoke();
}
public void OnKick(InputAction.CallbackContext ctx)
{
if (ctx.phase == InputActionPhase.Started)
OnKick_Event?.Invoke();
}
}