Example #1
0
 public void SetCallbacks(IPlayerInputActions instance)
 {
     if (m_Wrapper.m_PlayerInputActionsCallbackInterface != null)
     {
         @Primary.started         -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnPrimary;
         @Primary.performed       -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnPrimary;
         @Primary.canceled        -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnPrimary;
         @Secondary.started       -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnSecondary;
         @Secondary.performed     -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnSecondary;
         @Secondary.canceled      -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnSecondary;
         @MousePosition.started   -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMousePosition;
         @MousePosition.performed -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMousePosition;
         @MousePosition.canceled  -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMousePosition;
     }
     m_Wrapper.m_PlayerInputActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Primary.started         += instance.OnPrimary;
         @Primary.performed       += instance.OnPrimary;
         @Primary.canceled        += instance.OnPrimary;
         @Secondary.started       += instance.OnSecondary;
         @Secondary.performed     += instance.OnSecondary;
         @Secondary.canceled      += instance.OnSecondary;
         @MousePosition.started   += instance.OnMousePosition;
         @MousePosition.performed += instance.OnMousePosition;
         @MousePosition.canceled  += instance.OnMousePosition;
     }
 }
Example #2
0
 public void SetCallbacks(IPlayerInputActions instance)
 {
     if (m_Wrapper.m_PlayerInputActionsCallbackInterface != null)
     {
         @Move.started      -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMove;
         @Move.performed    -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMove;
         @Move.canceled     -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMove;
         @Dash.started      -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnDash;
         @Dash.performed    -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnDash;
         @Dash.canceled     -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnDash;
         @Jump.started      -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnJump;
         @Jump.performed    -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnJump;
         @Jump.canceled     -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnJump;
         @Recolor.started   -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnRecolor;
         @Recolor.performed -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnRecolor;
         @Recolor.canceled  -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnRecolor;
     }
     m_Wrapper.m_PlayerInputActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Move.started      += instance.OnMove;
         @Move.performed    += instance.OnMove;
         @Move.canceled     += instance.OnMove;
         @Dash.started      += instance.OnDash;
         @Dash.performed    += instance.OnDash;
         @Dash.canceled     += instance.OnDash;
         @Jump.started      += instance.OnJump;
         @Jump.performed    += instance.OnJump;
         @Jump.canceled     += instance.OnJump;
         @Recolor.started   += instance.OnRecolor;
         @Recolor.performed += instance.OnRecolor;
         @Recolor.canceled  += instance.OnRecolor;
     }
 }
Example #3
0
 public void SetCallbacks(IPlayerInputActions instance)
 {
     if (m_Wrapper.m_PlayerInputActionsCallbackInterface != null)
     {
         @LeftStick.started    -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnLeftStick;
         @LeftStick.performed  -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnLeftStick;
         @LeftStick.canceled   -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnLeftStick;
         @YButton.started      -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnYButton;
         @YButton.performed    -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnYButton;
         @YButton.canceled     -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnYButton;
         @RightStick.started   -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnRightStick;
         @RightStick.performed -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnRightStick;
         @RightStick.canceled  -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnRightStick;
     }
     m_Wrapper.m_PlayerInputActionsCallbackInterface = instance;
     if (instance != null)
     {
         @LeftStick.started    += instance.OnLeftStick;
         @LeftStick.performed  += instance.OnLeftStick;
         @LeftStick.canceled   += instance.OnLeftStick;
         @YButton.started      += instance.OnYButton;
         @YButton.performed    += instance.OnYButton;
         @YButton.canceled     += instance.OnYButton;
         @RightStick.started   += instance.OnRightStick;
         @RightStick.performed += instance.OnRightStick;
         @RightStick.canceled  += instance.OnRightStick;
     }
 }
Example #4
0
 public void SetCallbacks(IPlayerInputActions instance)
 {
     if (m_Wrapper.m_PlayerInputActionsCallbackInterface != null)
     {
         @Attack.started   -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnAttack;
         @Attack.performed -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnAttack;
         @Attack.canceled  -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnAttack;
         @Move.started     -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMove;
         @Move.performed   -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMove;
         @Move.canceled    -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMove;
         @Turn.started     -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnTurn;
         @Turn.performed   -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnTurn;
         @Turn.canceled    -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnTurn;
     }
     m_Wrapper.m_PlayerInputActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Attack.started   += instance.OnAttack;
         @Attack.performed += instance.OnAttack;
         @Attack.canceled  += instance.OnAttack;
         @Move.started     += instance.OnMove;
         @Move.performed   += instance.OnMove;
         @Move.canceled    += instance.OnMove;
         @Turn.started     += instance.OnTurn;
         @Turn.performed   += instance.OnTurn;
         @Turn.canceled    += instance.OnTurn;
     }
 }
Example #5
0
 public void SetCallbacks(IPlayerInputActions instance)
 {
     if (m_Wrapper.m_PlayerInputActionsCallbackInterface != null)
     {
         @Movement.started   -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMovement;
         @Movement.performed -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMovement;
         @Movement.canceled  -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMovement;
         @Attack.started     -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnAttack;
         @Attack.performed   -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnAttack;
         @Attack.canceled    -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnAttack;
         @Jump.started       -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnJump;
         @Jump.performed     -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnJump;
         @Jump.canceled      -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnJump;
         @Crouch.started     -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnCrouch;
         @Crouch.performed   -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnCrouch;
         @Crouch.canceled    -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnCrouch;
         @Switch.started     -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnSwitch;
         @Switch.performed   -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnSwitch;
         @Switch.canceled    -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnSwitch;
         @Lock.started       -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnLock;
         @Lock.performed     -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnLock;
         @Lock.canceled      -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnLock;
     }
     m_Wrapper.m_PlayerInputActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Movement.started   += instance.OnMovement;
         @Movement.performed += instance.OnMovement;
         @Movement.canceled  += instance.OnMovement;
         @Attack.started     += instance.OnAttack;
         @Attack.performed   += instance.OnAttack;
         @Attack.canceled    += instance.OnAttack;
         @Jump.started       += instance.OnJump;
         @Jump.performed     += instance.OnJump;
         @Jump.canceled      += instance.OnJump;
         @Crouch.started     += instance.OnCrouch;
         @Crouch.performed   += instance.OnCrouch;
         @Crouch.canceled    += instance.OnCrouch;
         @Switch.started     += instance.OnSwitch;
         @Switch.performed   += instance.OnSwitch;
         @Switch.canceled    += instance.OnSwitch;
         @Lock.started       += instance.OnLock;
         @Lock.performed     += instance.OnLock;
         @Lock.canceled      += instance.OnLock;
     }
 }
Example #6
0
 public void SetCallbacks(IPlayerInputActions instance)
 {
     if (m_Wrapper.m_PlayerInputActionsCallbackInterface != null)
     {
         @Move.started        -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMove;
         @Move.performed      -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMove;
         @Move.canceled       -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMove;
         @Shoot.started       -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnShoot;
         @Shoot.performed     -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnShoot;
         @Shoot.canceled      -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnShoot;
         @Reload.started      -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnReload;
         @Reload.performed    -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnReload;
         @Reload.canceled     -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnReload;
         @RotationX.started   -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnRotationX;
         @RotationX.performed -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnRotationX;
         @RotationX.canceled  -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnRotationX;
         @RotationY.started   -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnRotationY;
         @RotationY.performed -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnRotationY;
         @RotationY.canceled  -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnRotationY;
         @Jump.started        -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnJump;
         @Jump.performed      -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnJump;
         @Jump.canceled       -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnJump;
     }
     m_Wrapper.m_PlayerInputActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Move.started        += instance.OnMove;
         @Move.performed      += instance.OnMove;
         @Move.canceled       += instance.OnMove;
         @Shoot.started       += instance.OnShoot;
         @Shoot.performed     += instance.OnShoot;
         @Shoot.canceled      += instance.OnShoot;
         @Reload.started      += instance.OnReload;
         @Reload.performed    += instance.OnReload;
         @Reload.canceled     += instance.OnReload;
         @RotationX.started   += instance.OnRotationX;
         @RotationX.performed += instance.OnRotationX;
         @RotationX.canceled  += instance.OnRotationX;
         @RotationY.started   += instance.OnRotationY;
         @RotationY.performed += instance.OnRotationY;
         @RotationY.canceled  += instance.OnRotationY;
         @Jump.started        += instance.OnJump;
         @Jump.performed      += instance.OnJump;
         @Jump.canceled       += instance.OnJump;
     }
 }
Example #7
0
 public void SetCallbacks(IPlayerInputActions instance)
 {
     if (m_Wrapper.m_PlayerInputActionsCallbackInterface != null)
     {
         @Jump.started               -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnJump;
         @Jump.performed             -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnJump;
         @Jump.canceled              -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnJump;
         @CameraHorizontal.started   -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnCameraHorizontal;
         @CameraHorizontal.performed -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnCameraHorizontal;
         @CameraHorizontal.canceled  -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnCameraHorizontal;
         @Movement.started           -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMovement;
         @Movement.performed         -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMovement;
         @Movement.canceled          -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMovement;
         @Run.started        -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnRun;
         @Run.performed      -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnRun;
         @Run.canceled       -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnRun;
         @Interact.started   -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnInteract;
         @Interact.performed -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnInteract;
         @Interact.canceled  -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnInteract;
     }
     m_Wrapper.m_PlayerInputActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Jump.started               += instance.OnJump;
         @Jump.performed             += instance.OnJump;
         @Jump.canceled              += instance.OnJump;
         @CameraHorizontal.started   += instance.OnCameraHorizontal;
         @CameraHorizontal.performed += instance.OnCameraHorizontal;
         @CameraHorizontal.canceled  += instance.OnCameraHorizontal;
         @Movement.started           += instance.OnMovement;
         @Movement.performed         += instance.OnMovement;
         @Movement.canceled          += instance.OnMovement;
         @Run.started        += instance.OnRun;
         @Run.performed      += instance.OnRun;
         @Run.canceled       += instance.OnRun;
         @Interact.started   += instance.OnInteract;
         @Interact.performed += instance.OnInteract;
         @Interact.canceled  += instance.OnInteract;
     }
 }
Example #8
0
 public void SetCallbacks(IPlayerInputActions instance)
 {
     if (m_Wrapper.m_PlayerInputActionsCallbackInterface != null)
     {
         @Jump.started            -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnJump;
         @Jump.performed          -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnJump;
         @Jump.canceled           -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnJump;
         @Movement.started        -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMovement;
         @Movement.performed      -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMovement;
         @Movement.canceled       -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMovement;
         @Shoot.started           -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnShoot;
         @Shoot.performed         -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnShoot;
         @Shoot.canceled          -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnShoot;
         @Aim.started             -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnAim;
         @Aim.performed           -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnAim;
         @Aim.canceled            -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnAim;
         @Melee.started           -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMelee;
         @Melee.performed         -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMelee;
         @Melee.canceled          -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnMelee;
         @Pause.started           -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnPause;
         @Pause.performed         -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnPause;
         @Pause.canceled          -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnPause;
         @ExitMenu.started        -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnExitMenu;
         @ExitMenu.performed      -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnExitMenu;
         @ExitMenu.canceled       -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnExitMenu;
         @IncreaseSensY.started   -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnIncreaseSensY;
         @IncreaseSensY.performed -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnIncreaseSensY;
         @IncreaseSensY.canceled  -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnIncreaseSensY;
         @DecreaseSensY.started   -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnDecreaseSensY;
         @DecreaseSensY.performed -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnDecreaseSensY;
         @DecreaseSensY.canceled  -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnDecreaseSensY;
         @IncreaseSensX.started   -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnIncreaseSensX;
         @IncreaseSensX.performed -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnIncreaseSensX;
         @IncreaseSensX.canceled  -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnIncreaseSensX;
         @DecreaseSensX.started   -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnDecreaseSensX;
         @DecreaseSensX.performed -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnDecreaseSensX;
         @DecreaseSensX.canceled  -= m_Wrapper.m_PlayerInputActionsCallbackInterface.OnDecreaseSensX;
     }
     m_Wrapper.m_PlayerInputActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Jump.started            += instance.OnJump;
         @Jump.performed          += instance.OnJump;
         @Jump.canceled           += instance.OnJump;
         @Movement.started        += instance.OnMovement;
         @Movement.performed      += instance.OnMovement;
         @Movement.canceled       += instance.OnMovement;
         @Shoot.started           += instance.OnShoot;
         @Shoot.performed         += instance.OnShoot;
         @Shoot.canceled          += instance.OnShoot;
         @Aim.started             += instance.OnAim;
         @Aim.performed           += instance.OnAim;
         @Aim.canceled            += instance.OnAim;
         @Melee.started           += instance.OnMelee;
         @Melee.performed         += instance.OnMelee;
         @Melee.canceled          += instance.OnMelee;
         @Pause.started           += instance.OnPause;
         @Pause.performed         += instance.OnPause;
         @Pause.canceled          += instance.OnPause;
         @ExitMenu.started        += instance.OnExitMenu;
         @ExitMenu.performed      += instance.OnExitMenu;
         @ExitMenu.canceled       += instance.OnExitMenu;
         @IncreaseSensY.started   += instance.OnIncreaseSensY;
         @IncreaseSensY.performed += instance.OnIncreaseSensY;
         @IncreaseSensY.canceled  += instance.OnIncreaseSensY;
         @DecreaseSensY.started   += instance.OnDecreaseSensY;
         @DecreaseSensY.performed += instance.OnDecreaseSensY;
         @DecreaseSensY.canceled  += instance.OnDecreaseSensY;
         @IncreaseSensX.started   += instance.OnIncreaseSensX;
         @IncreaseSensX.performed += instance.OnIncreaseSensX;
         @IncreaseSensX.canceled  += instance.OnIncreaseSensX;
         @DecreaseSensX.started   += instance.OnDecreaseSensX;
         @DecreaseSensX.performed += instance.OnDecreaseSensX;
         @DecreaseSensX.canceled  += instance.OnDecreaseSensX;
     }
 }