2026-05-15 충돌오류 진행중
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user