2026-05-15 공격과 피격
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user