public void SetCallbacks(IControlsActions instance) { if (m_Wrapper.m_ControlsActionsCallbackInterface != null) { @DAction.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnDAction; @DAction.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnDAction; @DAction.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnDAction; @FAction.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnFAction; @FAction.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnFAction; @FAction.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnFAction; @JAction.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnJAction; @JAction.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnJAction; @JAction.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnJAction; @KAction.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnKAction; @KAction.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnKAction; @KAction.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnKAction; } m_Wrapper.m_ControlsActionsCallbackInterface = instance; if (instance != null) { @DAction.started += instance.OnDAction; @DAction.performed += instance.OnDAction; @DAction.canceled += instance.OnDAction; @FAction.started += instance.OnFAction; @FAction.performed += instance.OnFAction; @FAction.canceled += instance.OnFAction; @JAction.started += instance.OnJAction; @JAction.performed += instance.OnJAction; @JAction.canceled += instance.OnJAction; @KAction.started += instance.OnKAction; @KAction.performed += instance.OnKAction; @KAction.canceled += instance.OnKAction; } }
public void SetCallbacks(IControlsActions instance) { if (m_Wrapper.m_ControlsActionsCallbackInterface != null) { @Tap.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnTap; @Tap.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnTap; @Tap.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnTap; @TouchPress.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnTouchPress; @TouchPress.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnTouchPress; @TouchPress.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnTouchPress; @TouchPosition.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnTouchPosition; @TouchPosition.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnTouchPosition; @TouchPosition.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnTouchPosition; @PcMovement.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnPcMovement; @PcMovement.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnPcMovement; @PcMovement.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnPcMovement; } m_Wrapper.m_ControlsActionsCallbackInterface = instance; if (instance != null) { @Tap.started += instance.OnTap; @Tap.performed += instance.OnTap; @Tap.canceled += instance.OnTap; @TouchPress.started += instance.OnTouchPress; @TouchPress.performed += instance.OnTouchPress; @TouchPress.canceled += instance.OnTouchPress; @TouchPosition.started += instance.OnTouchPosition; @TouchPosition.performed += instance.OnTouchPosition; @TouchPosition.canceled += instance.OnTouchPosition; @PcMovement.started += instance.OnPcMovement; @PcMovement.performed += instance.OnPcMovement; @PcMovement.canceled += instance.OnPcMovement; } }
public void SetCallbacks(IControlsActions instance) { if (m_Wrapper.m_ControlsActionsCallbackInterface != null) { Move.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnMove; Move.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnMove; Move.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnMove; sprint.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnSprint; sprint.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnSprint; sprint.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnSprint; jump.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnJump; jump.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnJump; jump.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnJump; interact.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnInteract; interact.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnInteract; interact.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnInteract; attack.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnAttack; attack.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnAttack; attack.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnAttack; heal.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnHeal; heal.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnHeal; heal.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnHeal; Pause.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnPause; Pause.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnPause; Pause.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnPause; DreamDash.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnDreamDash; DreamDash.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnDreamDash; DreamDash.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnDreamDash; } m_Wrapper.m_ControlsActionsCallbackInterface = instance; if (instance != null) { Move.started += instance.OnMove; Move.performed += instance.OnMove; Move.canceled += instance.OnMove; sprint.started += instance.OnSprint; sprint.performed += instance.OnSprint; sprint.canceled += instance.OnSprint; jump.started += instance.OnJump; jump.performed += instance.OnJump; jump.canceled += instance.OnJump; interact.started += instance.OnInteract; interact.performed += instance.OnInteract; interact.canceled += instance.OnInteract; attack.started += instance.OnAttack; attack.performed += instance.OnAttack; attack.canceled += instance.OnAttack; heal.started += instance.OnHeal; heal.performed += instance.OnHeal; heal.canceled += instance.OnHeal; Pause.started += instance.OnPause; Pause.performed += instance.OnPause; Pause.canceled += instance.OnPause; DreamDash.started += instance.OnDreamDash; DreamDash.performed += instance.OnDreamDash; DreamDash.canceled += instance.OnDreamDash; } }
public void SetCallbacks(IControlsActions instance) { if (m_Wrapper.m_ControlsActionsCallbackInterface != null) { @MoveAWEF.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnMoveAWEF; @MoveAWEF.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnMoveAWEF; @MoveAWEF.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnMoveAWEF; @MoveKeypad.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnMoveKeypad; @MoveKeypad.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnMoveKeypad; @MoveKeypad.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnMoveKeypad; @MoveWASD.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnMoveWASD; @MoveWASD.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnMoveWASD; @MoveWASD.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnMoveWASD; @Grab.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnGrab; @Grab.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnGrab; @Grab.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnGrab; @RotateCamera.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnRotateCamera; @RotateCamera.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnRotateCamera; @RotateCamera.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnRotateCamera; @PauseMenu.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnPauseMenu; @PauseMenu.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnPauseMenu; @PauseMenu.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnPauseMenu; @Undo.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnUndo; @Undo.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnUndo; @Undo.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnUndo; } m_Wrapper.m_ControlsActionsCallbackInterface = instance; if (instance != null) { @MoveAWEF.started += instance.OnMoveAWEF; @MoveAWEF.performed += instance.OnMoveAWEF; @MoveAWEF.canceled += instance.OnMoveAWEF; @MoveKeypad.started += instance.OnMoveKeypad; @MoveKeypad.performed += instance.OnMoveKeypad; @MoveKeypad.canceled += instance.OnMoveKeypad; @MoveWASD.started += instance.OnMoveWASD; @MoveWASD.performed += instance.OnMoveWASD; @MoveWASD.canceled += instance.OnMoveWASD; @Grab.started += instance.OnGrab; @Grab.performed += instance.OnGrab; @Grab.canceled += instance.OnGrab; @RotateCamera.started += instance.OnRotateCamera; @RotateCamera.performed += instance.OnRotateCamera; @RotateCamera.canceled += instance.OnRotateCamera; @PauseMenu.started += instance.OnPauseMenu; @PauseMenu.performed += instance.OnPauseMenu; @PauseMenu.canceled += instance.OnPauseMenu; @Undo.started += instance.OnUndo; @Undo.performed += instance.OnUndo; @Undo.canceled += instance.OnUndo; } }
public void SetCallbacks(IControlsActions instance) { if (m_Wrapper.m_ControlsActionsCallbackInterface != null) { @Move.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnMove; } m_Wrapper.m_ControlsActionsCallbackInterface = instance; if (instance != null) { @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; } }
public void SetCallbacks(IControlsActions instance) { if (m_Wrapper.m_ControlsActionsCallbackInterface != null) { @ChangeCard.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnChangeCard; @ChangeCard.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnChangeCard; @ChangeCard.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnChangeCard; } m_Wrapper.m_ControlsActionsCallbackInterface = instance; if (instance != null) { @ChangeCard.started += instance.OnChangeCard; @ChangeCard.performed += instance.OnChangeCard; @ChangeCard.canceled += instance.OnChangeCard; } }
public void SetCallbacks(IControlsActions instance) { if (m_Wrapper.m_ControlsActionsCallbackInterface != null) { @LeftStick.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnLeftStick; @LeftStick.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnLeftStick; @LeftStick.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnLeftStick; @RightStick.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnRightStick; @RightStick.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnRightStick; @RightStick.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnRightStick; } m_Wrapper.m_ControlsActionsCallbackInterface = instance; if (instance != null) { @LeftStick.started += instance.OnLeftStick; @LeftStick.performed += instance.OnLeftStick; @LeftStick.canceled += instance.OnLeftStick; @RightStick.started += instance.OnRightStick; @RightStick.performed += instance.OnRightStick; @RightStick.canceled += instance.OnRightStick; } }
public void SetCallbacks(IControlsActions instance) { if (m_Wrapper.m_ControlsActionsCallbackInterface != null) { @ForwardKeyboard.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnForwardKeyboard; @ForwardKeyboard.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnForwardKeyboard; @ForwardKeyboard.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnForwardKeyboard; @RotateKeyboard.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnRotateKeyboard; @RotateKeyboard.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnRotateKeyboard; @RotateKeyboard.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnRotateKeyboard; @Jump.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnJump; @Jump.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnJump; @Jump.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnJump; @Pause.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnPause; @Pause.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnPause; @Pause.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnPause; @ForwardController.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnForwardController; @ForwardController.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnForwardController; @ForwardController.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnForwardController; @BackwardController.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnBackwardController; @BackwardController.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnBackwardController; @BackwardController.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnBackwardController; @RotateController.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnRotateController; @RotateController.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnRotateController; @RotateController.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnRotateController; @Handbrake.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnHandbrake; @Handbrake.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnHandbrake; @Handbrake.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnHandbrake; @Respawn.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnRespawn; @Respawn.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnRespawn; @Respawn.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnRespawn; } m_Wrapper.m_ControlsActionsCallbackInterface = instance; if (instance != null) { @ForwardKeyboard.started += instance.OnForwardKeyboard; @ForwardKeyboard.performed += instance.OnForwardKeyboard; @ForwardKeyboard.canceled += instance.OnForwardKeyboard; @RotateKeyboard.started += instance.OnRotateKeyboard; @RotateKeyboard.performed += instance.OnRotateKeyboard; @RotateKeyboard.canceled += instance.OnRotateKeyboard; @Jump.started += instance.OnJump; @Jump.performed += instance.OnJump; @Jump.canceled += instance.OnJump; @Pause.started += instance.OnPause; @Pause.performed += instance.OnPause; @Pause.canceled += instance.OnPause; @ForwardController.started += instance.OnForwardController; @ForwardController.performed += instance.OnForwardController; @ForwardController.canceled += instance.OnForwardController; @BackwardController.started += instance.OnBackwardController; @BackwardController.performed += instance.OnBackwardController; @BackwardController.canceled += instance.OnBackwardController; @RotateController.started += instance.OnRotateController; @RotateController.performed += instance.OnRotateController; @RotateController.canceled += instance.OnRotateController; @Handbrake.started += instance.OnHandbrake; @Handbrake.performed += instance.OnHandbrake; @Handbrake.canceled += instance.OnHandbrake; @Respawn.started += instance.OnRespawn; @Respawn.performed += instance.OnRespawn; @Respawn.canceled += instance.OnRespawn; } }
public void SetCallbacks(IControlsActions instance) { if (m_Wrapper.m_ControlsActionsCallbackInterface != null) { @Move.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnMove; @Jump.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnJump; @Jump.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnJump; @Jump.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnJump; @HoldJump.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnHoldJump; @HoldJump.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnHoldJump; @HoldJump.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnHoldJump; @DrinkPotion.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnDrinkPotion; @DrinkPotion.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnDrinkPotion; @DrinkPotion.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnDrinkPotion; @Dash.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnDash; @Dash.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnDash; @Dash.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnDash; @Attack.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnAttack; @Attack.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnAttack; @Attack.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnAttack; @AttackDirection.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnAttackDirection; @AttackDirection.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnAttackDirection; @AttackDirection.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnAttackDirection; @Parry.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnParry; @Parry.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnParry; @Parry.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnParry; @Interact.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnInteract; @Interact.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnInteract; @Interact.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnInteract; @Pause.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnPause; @Pause.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnPause; @Pause.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnPause; @Bomb.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnBomb; @Bomb.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnBomb; @Bomb.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnBomb; @Map.started -= m_Wrapper.m_ControlsActionsCallbackInterface.OnMap; @Map.performed -= m_Wrapper.m_ControlsActionsCallbackInterface.OnMap; @Map.canceled -= m_Wrapper.m_ControlsActionsCallbackInterface.OnMap; } m_Wrapper.m_ControlsActionsCallbackInterface = instance; if (instance != null) { @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; @Jump.started += instance.OnJump; @Jump.performed += instance.OnJump; @Jump.canceled += instance.OnJump; @HoldJump.started += instance.OnHoldJump; @HoldJump.performed += instance.OnHoldJump; @HoldJump.canceled += instance.OnHoldJump; @DrinkPotion.started += instance.OnDrinkPotion; @DrinkPotion.performed += instance.OnDrinkPotion; @DrinkPotion.canceled += instance.OnDrinkPotion; @Dash.started += instance.OnDash; @Dash.performed += instance.OnDash; @Dash.canceled += instance.OnDash; @Attack.started += instance.OnAttack; @Attack.performed += instance.OnAttack; @Attack.canceled += instance.OnAttack; @AttackDirection.started += instance.OnAttackDirection; @AttackDirection.performed += instance.OnAttackDirection; @AttackDirection.canceled += instance.OnAttackDirection; @Parry.started += instance.OnParry; @Parry.performed += instance.OnParry; @Parry.canceled += instance.OnParry; @Interact.started += instance.OnInteract; @Interact.performed += instance.OnInteract; @Interact.canceled += instance.OnInteract; @Pause.started += instance.OnPause; @Pause.performed += instance.OnPause; @Pause.canceled += instance.OnPause; @Bomb.started += instance.OnBomb; @Bomb.performed += instance.OnBomb; @Bomb.canceled += instance.OnBomb; @Map.started += instance.OnMap; @Map.performed += instance.OnMap; @Map.canceled += instance.OnMap; } }