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