2026-05-15 충돌오류 진행중

This commit is contained in:
2026-05-15 18:07:50 +09:00
parent ec353d0fd4
commit 53e7f3b302
33 changed files with 902 additions and 65 deletions

View File

@@ -12,6 +12,8 @@ public class InputManager : MonoBehaviour, GameInput.IPlayerActions
public event Action OnJump_Event;
public event Action OnPunch_Event;
public event Action OnKick_Event;
public event Action OnDash_Event;
public event Action OnRoll_Event;
private void Awake()
{
@@ -27,7 +29,9 @@ private void Awake()
}
private void OnEnable() => _input?.Player.Enable();
private void OnDisable() => _input?.Player.Disable();
private void OnDestroy() => _input?.Dispose();
public void OnMove(InputAction.CallbackContext ctx)
@@ -54,4 +58,15 @@ public void OnKick(InputAction.CallbackContext ctx)
OnKick_Event?.Invoke();
}
public void OnDash(InputAction.CallbackContext ctx)
{
if (ctx.phase == InputActionPhase.Started)
OnDash_Event?.Invoke();
}
public void OnRoll(InputAction.CallbackContext ctx)
{
if (ctx.phase == InputActionPhase.Started)
OnRoll_Event?.Invoke();
}
}