|
|
|
|
|
|
public void OnAttack(InputAction.CallbackContext context) |
|
|
|
{ |
|
|
|
if (attackEvent != null |
|
|
|
&& context.phase == InputActionPhase.Performed) |
|
|
|
&& context.phase == InputActionPhase.Performed) |
|
|
|
attackEvent.Invoke(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
&& context.phase == InputActionPhase.Performed) |
|
|
|
&& context.phase == InputActionPhase.Performed) |
|
|
|
extraActionEvent.Invoke(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
&& context.phase == InputActionPhase.Performed) |
|
|
|
&& context.phase == InputActionPhase.Performed) |
|
|
|
interactEvent.Invoke(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
&& context.phase == InputActionPhase.Performed) |
|
|
|
&& context.phase == InputActionPhase.Performed) |
|
|
|
&& context.phase == InputActionPhase.Canceled) |
|
|
|
&& context.phase == InputActionPhase.Canceled) |
|
|
|
jumpCanceledEvent.Invoke(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
public void OnPause(InputAction.CallbackContext context) |
|
|
|
{ |
|
|
|
if (pauseEvent != null |
|
|
|
&& context.phase == InputActionPhase.Performed) |
|
|
|
&& context.phase == InputActionPhase.Performed) |
|
|
|
pauseEvent.Invoke(); |
|
|
|
} |
|
|
|
|
|
|
|