Exemplo n.º 1
0
 public void SetCallbacks(IMovementActions instance)
 {
     if (m_Wrapper.m_MovementActionsCallbackInterface != null)
     {
         Axis.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnAxis;
         Axis.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnAxis;
         Axis.cancelled -= m_Wrapper.m_MovementActionsCallbackInterface.OnAxis;
     }
     m_Wrapper.m_MovementActionsCallbackInterface = instance;
     if (instance != null)
     {
         Axis.started   += instance.OnAxis;
         Axis.performed += instance.OnAxis;
         Axis.cancelled += instance.OnAxis;
     }
 }
Exemplo n.º 2
0
 public void SetCallbacks(IMovementActions instance)
 {
     if (m_Wrapper.m_MovementActionsCallbackInterface != null)
     {
         @Move.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         @Move.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         @Move.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
     }
     m_Wrapper.m_MovementActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Move.started   += instance.OnMove;
         @Move.performed += instance.OnMove;
         @Move.canceled  += instance.OnMove;
     }
 }
Exemplo n.º 3
0
 public void SetCallbacks(IMovementActions instance)
 {
     if (m_Wrapper.m_MovementActionsCallbackInterface != null)
     {
         @Horizontal.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnHorizontal;
         @Horizontal.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnHorizontal;
         @Horizontal.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnHorizontal;
     }
     m_Wrapper.m_MovementActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Horizontal.started   += instance.OnHorizontal;
         @Horizontal.performed += instance.OnHorizontal;
         @Horizontal.canceled  += instance.OnHorizontal;
     }
 }
Exemplo n.º 4
0
 public void SetCallbacks(IMovementActions instance)
 {
     if (m_Wrapper.m_MovementActionsCallbackInterface != null)
     {
         @Follow.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnFollow;
         @Follow.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnFollow;
         @Follow.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnFollow;
         @Move.started     -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         @Move.performed   -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         @Move.canceled    -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         @Queue.started    -= m_Wrapper.m_MovementActionsCallbackInterface.OnQueue;
         @Queue.performed  -= m_Wrapper.m_MovementActionsCallbackInterface.OnQueue;
         @Queue.canceled   -= m_Wrapper.m_MovementActionsCallbackInterface.OnQueue;
         @Select.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnSelect;
         @Select.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnSelect;
         @Select.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnSelect;
         @Action.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnAction;
         @Action.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnAction;
         @Action.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnAction;
         @Attack.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnAttack;
         @Attack.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnAttack;
         @Attack.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnAttack;
     }
     m_Wrapper.m_MovementActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Follow.started   += instance.OnFollow;
         @Follow.performed += instance.OnFollow;
         @Follow.canceled  += instance.OnFollow;
         @Move.started     += instance.OnMove;
         @Move.performed   += instance.OnMove;
         @Move.canceled    += instance.OnMove;
         @Queue.started    += instance.OnQueue;
         @Queue.performed  += instance.OnQueue;
         @Queue.canceled   += instance.OnQueue;
         @Select.started   += instance.OnSelect;
         @Select.performed += instance.OnSelect;
         @Select.canceled  += instance.OnSelect;
         @Action.started   += instance.OnAction;
         @Action.performed += instance.OnAction;
         @Action.canceled  += instance.OnAction;
         @Attack.started   += instance.OnAttack;
         @Attack.performed += instance.OnAttack;
         @Attack.canceled  += instance.OnAttack;
     }
 }
Exemplo n.º 5
0
 public void SetCallbacks(IMovementActions instance)
 {
     if (m_Wrapper.m_MovementActionsCallbackInterface != null)
     {
         @Move.started           -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         @Move.performed         -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         @Move.canceled          -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         @RotationL.started      -= m_Wrapper.m_MovementActionsCallbackInterface.OnRotationL;
         @RotationL.performed    -= m_Wrapper.m_MovementActionsCallbackInterface.OnRotationL;
         @RotationL.canceled     -= m_Wrapper.m_MovementActionsCallbackInterface.OnRotationL;
         @RotationR.started      -= m_Wrapper.m_MovementActionsCallbackInterface.OnRotationR;
         @RotationR.performed    -= m_Wrapper.m_MovementActionsCallbackInterface.OnRotationR;
         @RotationR.canceled     -= m_Wrapper.m_MovementActionsCallbackInterface.OnRotationR;
         @Jump.started           -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
         @Jump.performed         -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
         @Jump.canceled          -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
         @Moveforward.started    -= m_Wrapper.m_MovementActionsCallbackInterface.OnMoveforward;
         @Moveforward.performed  -= m_Wrapper.m_MovementActionsCallbackInterface.OnMoveforward;
         @Moveforward.canceled   -= m_Wrapper.m_MovementActionsCallbackInterface.OnMoveforward;
         @Movebackward.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnMovebackward;
         @Movebackward.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnMovebackward;
         @Movebackward.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnMovebackward;
     }
     m_Wrapper.m_MovementActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Move.started           += instance.OnMove;
         @Move.performed         += instance.OnMove;
         @Move.canceled          += instance.OnMove;
         @RotationL.started      += instance.OnRotationL;
         @RotationL.performed    += instance.OnRotationL;
         @RotationL.canceled     += instance.OnRotationL;
         @RotationR.started      += instance.OnRotationR;
         @RotationR.performed    += instance.OnRotationR;
         @RotationR.canceled     += instance.OnRotationR;
         @Jump.started           += instance.OnJump;
         @Jump.performed         += instance.OnJump;
         @Jump.canceled          += instance.OnJump;
         @Moveforward.started    += instance.OnMoveforward;
         @Moveforward.performed  += instance.OnMoveforward;
         @Moveforward.canceled   += instance.OnMoveforward;
         @Movebackward.started   += instance.OnMovebackward;
         @Movebackward.performed += instance.OnMovebackward;
         @Movebackward.canceled  += instance.OnMovebackward;
     }
 }
Exemplo n.º 6
0
 public void SetCallbacks(IMovementActions instance)
 {
     if (m_Wrapper.m_MovementActionsCallbackInterface != null)
     {
         @Move.started       -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         @Move.performed     -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         @Move.canceled      -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         @MousePos.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnMousePos;
         @MousePos.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnMousePos;
         @MousePos.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnMousePos;
         @Jump.started       -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
         @Jump.performed     -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
         @Jump.canceled      -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
         @Back.started       -= m_Wrapper.m_MovementActionsCallbackInterface.OnBack;
         @Back.performed     -= m_Wrapper.m_MovementActionsCallbackInterface.OnBack;
         @Back.canceled      -= m_Wrapper.m_MovementActionsCallbackInterface.OnBack;
         @Interact.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnInteract;
         @Interact.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnInteract;
         @Interact.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnInteract;
     }
     m_Wrapper.m_MovementActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Move.started       += instance.OnMove;
         @Move.performed     += instance.OnMove;
         @Move.canceled      += instance.OnMove;
         @MousePos.started   += instance.OnMousePos;
         @MousePos.performed += instance.OnMousePos;
         @MousePos.canceled  += instance.OnMousePos;
         @Jump.started       += instance.OnJump;
         @Jump.performed     += instance.OnJump;
         @Jump.canceled      += instance.OnJump;
         @Back.started       += instance.OnBack;
         @Back.performed     += instance.OnBack;
         @Back.canceled      += instance.OnBack;
         @Interact.started   += instance.OnInteract;
         @Interact.performed += instance.OnInteract;
         @Interact.canceled  += instance.OnInteract;
     }
 }
Exemplo n.º 7
0
 public void SetCallbacks(IMovementActions instance)
 {
     if (m_Wrapper.m_MovementActionsCallbackInterface != null)
     {
         @Move.started        -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         @Move.performed      -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         @Move.canceled       -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         @Sprint.started      -= m_Wrapper.m_MovementActionsCallbackInterface.OnSprint;
         @Sprint.performed    -= m_Wrapper.m_MovementActionsCallbackInterface.OnSprint;
         @Sprint.canceled     -= m_Wrapper.m_MovementActionsCallbackInterface.OnSprint;
         @Jump.started        -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
         @Jump.performed      -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
         @Jump.canceled       -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
         @MouseLook.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnMouseLook;
         @MouseLook.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnMouseLook;
         @MouseLook.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnMouseLook;
         @Crouch.started      -= m_Wrapper.m_MovementActionsCallbackInterface.OnCrouch;
         @Crouch.performed    -= m_Wrapper.m_MovementActionsCallbackInterface.OnCrouch;
         @Crouch.canceled     -= m_Wrapper.m_MovementActionsCallbackInterface.OnCrouch;
     }
     m_Wrapper.m_MovementActionsCallbackInterface = 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;
         @MouseLook.started   += instance.OnMouseLook;
         @MouseLook.performed += instance.OnMouseLook;
         @MouseLook.canceled  += instance.OnMouseLook;
         @Crouch.started      += instance.OnCrouch;
         @Crouch.performed    += instance.OnCrouch;
         @Crouch.canceled     += instance.OnCrouch;
     }
 }
Exemplo n.º 8
0
 public void SetCallbacks(IMovementActions instance)
 {
     if (m_Wrapper.m_MovementActionsCallbackInterface != null)
     {
         @Walk.started            -= m_Wrapper.m_MovementActionsCallbackInterface.OnWalk;
         @Walk.performed          -= m_Wrapper.m_MovementActionsCallbackInterface.OnWalk;
         @Walk.canceled           -= m_Wrapper.m_MovementActionsCallbackInterface.OnWalk;
         @Jump.started            -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
         @Jump.performed          -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
         @Jump.canceled           -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
         @Dash.started            -= m_Wrapper.m_MovementActionsCallbackInterface.OnDash;
         @Dash.performed          -= m_Wrapper.m_MovementActionsCallbackInterface.OnDash;
         @Dash.canceled           -= m_Wrapper.m_MovementActionsCallbackInterface.OnDash;
         @WallRun.started         -= m_Wrapper.m_MovementActionsCallbackInterface.OnWallRun;
         @WallRun.performed       -= m_Wrapper.m_MovementActionsCallbackInterface.OnWallRun;
         @WallRun.canceled        -= m_Wrapper.m_MovementActionsCallbackInterface.OnWallRun;
         @CancelWallRun.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnCancelWallRun;
         @CancelWallRun.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnCancelWallRun;
         @CancelWallRun.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnCancelWallRun;
     }
     m_Wrapper.m_MovementActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Walk.started            += instance.OnWalk;
         @Walk.performed          += instance.OnWalk;
         @Walk.canceled           += instance.OnWalk;
         @Jump.started            += instance.OnJump;
         @Jump.performed          += instance.OnJump;
         @Jump.canceled           += instance.OnJump;
         @Dash.started            += instance.OnDash;
         @Dash.performed          += instance.OnDash;
         @Dash.canceled           += instance.OnDash;
         @WallRun.started         += instance.OnWallRun;
         @WallRun.performed       += instance.OnWallRun;
         @WallRun.canceled        += instance.OnWallRun;
         @CancelWallRun.started   += instance.OnCancelWallRun;
         @CancelWallRun.performed += instance.OnCancelWallRun;
         @CancelWallRun.canceled  += instance.OnCancelWallRun;
     }
 }
Exemplo n.º 9
0
 public void SetCallbacks(IMovementActions instance)
 {
     if (m_Wrapper.m_MovementActionsCallbackInterface != null)
     {
         @movement.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnMovement;
         @movement.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnMovement;
         @movement.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnMovement;
         @jump.started       -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
         @jump.performed     -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
         @jump.canceled      -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
     }
     m_Wrapper.m_MovementActionsCallbackInterface = instance;
     if (instance != null)
     {
         @movement.started   += instance.OnMovement;
         @movement.performed += instance.OnMovement;
         @movement.canceled  += instance.OnMovement;
         @jump.started       += instance.OnJump;
         @jump.performed     += instance.OnJump;
         @jump.canceled      += instance.OnJump;
     }
 }
Exemplo n.º 10
0
 public void SetCallbacks(IMovementActions instance)
 {
     if (m_Wrapper.m_MovementActionsCallbackInterface != null)
     {
         @Torque.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnTorque;
         @Torque.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnTorque;
         @Torque.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnTorque;
         @Boost.started    -= m_Wrapper.m_MovementActionsCallbackInterface.OnBoost;
         @Boost.performed  -= m_Wrapper.m_MovementActionsCallbackInterface.OnBoost;
         @Boost.canceled   -= m_Wrapper.m_MovementActionsCallbackInterface.OnBoost;
     }
     m_Wrapper.m_MovementActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Torque.started   += instance.OnTorque;
         @Torque.performed += instance.OnTorque;
         @Torque.canceled  += instance.OnTorque;
         @Boost.started    += instance.OnBoost;
         @Boost.performed  += instance.OnBoost;
         @Boost.canceled   += instance.OnBoost;
     }
 }
Exemplo n.º 11
0
 public void SetCallbacks(IMovementActions instance)
 {
     if (m_Wrapper.m_MovementActionsCallbackInterface != null)
     {
         @Scroll.started      -= m_Wrapper.m_MovementActionsCallbackInterface.OnScroll;
         @Scroll.performed    -= m_Wrapper.m_MovementActionsCallbackInterface.OnScroll;
         @Scroll.canceled     -= m_Wrapper.m_MovementActionsCallbackInterface.OnScroll;
         @Newaction.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnNewaction;
         @Newaction.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnNewaction;
         @Newaction.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnNewaction;
     }
     m_Wrapper.m_MovementActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Scroll.started      += instance.OnScroll;
         @Scroll.performed    += instance.OnScroll;
         @Scroll.canceled     += instance.OnScroll;
         @Newaction.started   += instance.OnNewaction;
         @Newaction.performed += instance.OnNewaction;
         @Newaction.canceled  += instance.OnNewaction;
     }
 }
 public void SetCallbacks(IMovementActions instance)
 {
     if (m_Wrapper.m_MovementActionsCallbackInterface != null)
     {
         @LeftRight.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnLeftRight;
         @LeftRight.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnLeftRight;
         @LeftRight.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnLeftRight;
         @Dash.started        -= m_Wrapper.m_MovementActionsCallbackInterface.OnDash;
         @Dash.performed      -= m_Wrapper.m_MovementActionsCallbackInterface.OnDash;
         @Dash.canceled       -= m_Wrapper.m_MovementActionsCallbackInterface.OnDash;
     }
     m_Wrapper.m_MovementActionsCallbackInterface = instance;
     if (instance != null)
     {
         @LeftRight.started   += instance.OnLeftRight;
         @LeftRight.performed += instance.OnLeftRight;
         @LeftRight.canceled  += instance.OnLeftRight;
         @Dash.started        += instance.OnDash;
         @Dash.performed      += instance.OnDash;
         @Dash.canceled       += instance.OnDash;
     }
 }
Exemplo n.º 13
0
 public void SetCallbacks(IMovementActions instance)
 {
     if (m_Wrapper.m_MovementActionsCallbackInterface != null)
     {
         @mouseLook.started         -= m_Wrapper.m_MovementActionsCallbackInterface.OnMouseLook;
         @mouseLook.performed       -= m_Wrapper.m_MovementActionsCallbackInterface.OnMouseLook;
         @mouseLook.canceled        -= m_Wrapper.m_MovementActionsCallbackInterface.OnMouseLook;
         @gamepadLook.started       -= m_Wrapper.m_MovementActionsCallbackInterface.OnGamepadLook;
         @gamepadLook.performed     -= m_Wrapper.m_MovementActionsCallbackInterface.OnGamepadLook;
         @gamepadLook.canceled      -= m_Wrapper.m_MovementActionsCallbackInterface.OnGamepadLook;
         @move.started              -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         @move.performed            -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         @move.canceled             -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         @crouch.started            -= m_Wrapper.m_MovementActionsCallbackInterface.OnCrouch;
         @crouch.performed          -= m_Wrapper.m_MovementActionsCallbackInterface.OnCrouch;
         @crouch.canceled           -= m_Wrapper.m_MovementActionsCallbackInterface.OnCrouch;
         @recentre.started          -= m_Wrapper.m_MovementActionsCallbackInterface.OnRecentre;
         @recentre.performed        -= m_Wrapper.m_MovementActionsCallbackInterface.OnRecentre;
         @recentre.canceled         -= m_Wrapper.m_MovementActionsCallbackInterface.OnRecentre;
         @sprint.started            -= m_Wrapper.m_MovementActionsCallbackInterface.OnSprint;
         @sprint.performed          -= m_Wrapper.m_MovementActionsCallbackInterface.OnSprint;
         @sprint.canceled           -= m_Wrapper.m_MovementActionsCallbackInterface.OnSprint;
         @strafe.started            -= m_Wrapper.m_MovementActionsCallbackInterface.OnStrafe;
         @strafe.performed          -= m_Wrapper.m_MovementActionsCallbackInterface.OnStrafe;
         @strafe.canceled           -= m_Wrapper.m_MovementActionsCallbackInterface.OnStrafe;
         @jump.started              -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
         @jump.performed            -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
         @jump.canceled             -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
         @mouseLookActive.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnMouseLookActive;
         @mouseLookActive.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnMouseLookActive;
         @mouseLookActive.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnMouseLookActive;
     }
     m_Wrapper.m_MovementActionsCallbackInterface = instance;
     if (instance != null)
     {
         @mouseLook.started         += instance.OnMouseLook;
         @mouseLook.performed       += instance.OnMouseLook;
         @mouseLook.canceled        += instance.OnMouseLook;
         @gamepadLook.started       += instance.OnGamepadLook;
         @gamepadLook.performed     += instance.OnGamepadLook;
         @gamepadLook.canceled      += instance.OnGamepadLook;
         @move.started              += instance.OnMove;
         @move.performed            += instance.OnMove;
         @move.canceled             += instance.OnMove;
         @crouch.started            += instance.OnCrouch;
         @crouch.performed          += instance.OnCrouch;
         @crouch.canceled           += instance.OnCrouch;
         @recentre.started          += instance.OnRecentre;
         @recentre.performed        += instance.OnRecentre;
         @recentre.canceled         += instance.OnRecentre;
         @sprint.started            += instance.OnSprint;
         @sprint.performed          += instance.OnSprint;
         @sprint.canceled           += instance.OnSprint;
         @strafe.started            += instance.OnStrafe;
         @strafe.performed          += instance.OnStrafe;
         @strafe.canceled           += instance.OnStrafe;
         @jump.started              += instance.OnJump;
         @jump.performed            += instance.OnJump;
         @jump.canceled             += instance.OnJump;
         @mouseLookActive.started   += instance.OnMouseLookActive;
         @mouseLookActive.performed += instance.OnMouseLookActive;
         @mouseLookActive.canceled  += instance.OnMouseLookActive;
     }
 }
Exemplo n.º 14
0
 public void SetCallbacks(IMovementActions instance)
 {
     if (m_Wrapper.m_MovementActionsCallbackInterface != null)
     {
         @Move.started         -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         @Move.performed       -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         @Move.canceled        -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         @Jump.started         -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
         @Jump.performed       -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
         @Jump.canceled        -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
         @Sprint.started       -= m_Wrapper.m_MovementActionsCallbackInterface.OnSprint;
         @Sprint.performed     -= m_Wrapper.m_MovementActionsCallbackInterface.OnSprint;
         @Sprint.canceled      -= m_Wrapper.m_MovementActionsCallbackInterface.OnSprint;
         @Crouch.started       -= m_Wrapper.m_MovementActionsCallbackInterface.OnCrouch;
         @Crouch.performed     -= m_Wrapper.m_MovementActionsCallbackInterface.OnCrouch;
         @Crouch.canceled      -= m_Wrapper.m_MovementActionsCallbackInterface.OnCrouch;
         @Menu.started         -= m_Wrapper.m_MovementActionsCallbackInterface.OnMenu;
         @Menu.performed       -= m_Wrapper.m_MovementActionsCallbackInterface.OnMenu;
         @Menu.canceled        -= m_Wrapper.m_MovementActionsCallbackInterface.OnMenu;
         @Flashlight.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnFlashlight;
         @Flashlight.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnFlashlight;
         @Flashlight.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnFlashlight;
         @Use.started          -= m_Wrapper.m_MovementActionsCallbackInterface.OnUse;
         @Use.performed        -= m_Wrapper.m_MovementActionsCallbackInterface.OnUse;
         @Use.canceled         -= m_Wrapper.m_MovementActionsCallbackInterface.OnUse;
         @Pickup.started       -= m_Wrapper.m_MovementActionsCallbackInterface.OnPickup;
         @Pickup.performed     -= m_Wrapper.m_MovementActionsCallbackInterface.OnPickup;
         @Pickup.canceled      -= m_Wrapper.m_MovementActionsCallbackInterface.OnPickup;
         @Drop.started         -= m_Wrapper.m_MovementActionsCallbackInterface.OnDrop;
         @Drop.performed       -= m_Wrapper.m_MovementActionsCallbackInterface.OnDrop;
         @Drop.canceled        -= m_Wrapper.m_MovementActionsCallbackInterface.OnDrop;
     }
     m_Wrapper.m_MovementActionsCallbackInterface = 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;
         @Sprint.started       += instance.OnSprint;
         @Sprint.performed     += instance.OnSprint;
         @Sprint.canceled      += instance.OnSprint;
         @Crouch.started       += instance.OnCrouch;
         @Crouch.performed     += instance.OnCrouch;
         @Crouch.canceled      += instance.OnCrouch;
         @Menu.started         += instance.OnMenu;
         @Menu.performed       += instance.OnMenu;
         @Menu.canceled        += instance.OnMenu;
         @Flashlight.started   += instance.OnFlashlight;
         @Flashlight.performed += instance.OnFlashlight;
         @Flashlight.canceled  += instance.OnFlashlight;
         @Use.started          += instance.OnUse;
         @Use.performed        += instance.OnUse;
         @Use.canceled         += instance.OnUse;
         @Pickup.started       += instance.OnPickup;
         @Pickup.performed     += instance.OnPickup;
         @Pickup.canceled      += instance.OnPickup;
         @Drop.started         += instance.OnDrop;
         @Drop.performed       += instance.OnDrop;
         @Drop.canceled        += instance.OnDrop;
     }
 }
 public void SetCallbacks(IMovementActions instance)
 {
     if (m_Wrapper.m_MovementActionsCallbackInterface != null)
     {
         @Move.started       -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         @Move.performed     -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         @Move.canceled      -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         @Pause.started      -= m_Wrapper.m_MovementActionsCallbackInterface.OnPause;
         @Pause.performed    -= m_Wrapper.m_MovementActionsCallbackInterface.OnPause;
         @Pause.canceled     -= m_Wrapper.m_MovementActionsCallbackInterface.OnPause;
         @Ability0.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnAbility0;
         @Ability0.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnAbility0;
         @Ability0.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnAbility0;
         @Ability1.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnAbility1;
         @Ability1.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnAbility1;
         @Ability1.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnAbility1;
         @Ability2.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnAbility2;
         @Ability2.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnAbility2;
         @Ability2.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnAbility2;
         @Ability3.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnAbility3;
         @Ability3.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnAbility3;
         @Ability3.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnAbility3;
         @Ability4.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnAbility4;
         @Ability4.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnAbility4;
         @Ability4.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnAbility4;
         @Ability5.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnAbility5;
         @Ability5.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnAbility5;
         @Ability5.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnAbility5;
         @Ability6.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnAbility6;
         @Ability6.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnAbility6;
         @Ability6.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnAbility6;
     }
     m_Wrapper.m_MovementActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Move.started       += instance.OnMove;
         @Move.performed     += instance.OnMove;
         @Move.canceled      += instance.OnMove;
         @Pause.started      += instance.OnPause;
         @Pause.performed    += instance.OnPause;
         @Pause.canceled     += instance.OnPause;
         @Ability0.started   += instance.OnAbility0;
         @Ability0.performed += instance.OnAbility0;
         @Ability0.canceled  += instance.OnAbility0;
         @Ability1.started   += instance.OnAbility1;
         @Ability1.performed += instance.OnAbility1;
         @Ability1.canceled  += instance.OnAbility1;
         @Ability2.started   += instance.OnAbility2;
         @Ability2.performed += instance.OnAbility2;
         @Ability2.canceled  += instance.OnAbility2;
         @Ability3.started   += instance.OnAbility3;
         @Ability3.performed += instance.OnAbility3;
         @Ability3.canceled  += instance.OnAbility3;
         @Ability4.started   += instance.OnAbility4;
         @Ability4.performed += instance.OnAbility4;
         @Ability4.canceled  += instance.OnAbility4;
         @Ability5.started   += instance.OnAbility5;
         @Ability5.performed += instance.OnAbility5;
         @Ability5.canceled  += instance.OnAbility5;
         @Ability6.started   += instance.OnAbility6;
         @Ability6.performed += instance.OnAbility6;
         @Ability6.canceled  += instance.OnAbility6;
     }
 }
 public void SetCallbacks(IMovementActions instance)
 {
     if (m_Wrapper.m_MovementActionsCallbackInterface != null)
     {
         gamepadLook.started    -= m_Wrapper.m_MovementActionsCallbackInterface.OnGamepadLook;
         gamepadLook.performed  -= m_Wrapper.m_MovementActionsCallbackInterface.OnGamepadLook;
         gamepadLook.canceled   -= m_Wrapper.m_MovementActionsCallbackInterface.OnGamepadLook;
         move.started           -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         move.performed         -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         move.canceled          -= m_Wrapper.m_MovementActionsCallbackInterface.OnMove;
         crouch.started         -= m_Wrapper.m_MovementActionsCallbackInterface.OnCrouch;
         crouch.performed       -= m_Wrapper.m_MovementActionsCallbackInterface.OnCrouch;
         crouch.canceled        -= m_Wrapper.m_MovementActionsCallbackInterface.OnCrouch;
         recentre.started       -= m_Wrapper.m_MovementActionsCallbackInterface.OnRecentre;
         recentre.performed     -= m_Wrapper.m_MovementActionsCallbackInterface.OnRecentre;
         recentre.canceled      -= m_Wrapper.m_MovementActionsCallbackInterface.OnRecentre;
         sprint.started         -= m_Wrapper.m_MovementActionsCallbackInterface.OnSprint;
         sprint.performed       -= m_Wrapper.m_MovementActionsCallbackInterface.OnSprint;
         sprint.canceled        -= m_Wrapper.m_MovementActionsCallbackInterface.OnSprint;
         strafe.started         -= m_Wrapper.m_MovementActionsCallbackInterface.OnStrafe;
         strafe.performed       -= m_Wrapper.m_MovementActionsCallbackInterface.OnStrafe;
         strafe.canceled        -= m_Wrapper.m_MovementActionsCallbackInterface.OnStrafe;
         strafeToggle.started   -= m_Wrapper.m_MovementActionsCallbackInterface.OnStrafeToggle;
         strafeToggle.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnStrafeToggle;
         strafeToggle.canceled  -= m_Wrapper.m_MovementActionsCallbackInterface.OnStrafeToggle;
         jump.started           -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
         jump.performed         -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
         jump.canceled          -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
         mouseLook.started      -= m_Wrapper.m_MovementActionsCallbackInterface.OnMouseLook;
         mouseLook.performed    -= m_Wrapper.m_MovementActionsCallbackInterface.OnMouseLook;
         mouseLook.canceled     -= m_Wrapper.m_MovementActionsCallbackInterface.OnMouseLook;
     }
     m_Wrapper.m_MovementActionsCallbackInterface = instance;
     if (instance != null)
     {
         gamepadLook.started    += instance.OnGamepadLook;
         gamepadLook.performed  += instance.OnGamepadLook;
         gamepadLook.canceled   += instance.OnGamepadLook;
         move.started           += instance.OnMove;
         move.performed         += instance.OnMove;
         move.canceled          += instance.OnMove;
         crouch.started         += instance.OnCrouch;
         crouch.performed       += instance.OnCrouch;
         crouch.canceled        += instance.OnCrouch;
         recentre.started       += instance.OnRecentre;
         recentre.performed     += instance.OnRecentre;
         recentre.canceled      += instance.OnRecentre;
         sprint.started         += instance.OnSprint;
         sprint.performed       += instance.OnSprint;
         sprint.canceled        += instance.OnSprint;
         strafe.started         += instance.OnStrafe;
         strafe.performed       += instance.OnStrafe;
         strafe.canceled        += instance.OnStrafe;
         strafeToggle.started   += instance.OnStrafeToggle;
         strafeToggle.performed += instance.OnStrafeToggle;
         strafeToggle.canceled  += instance.OnStrafeToggle;
         jump.started           += instance.OnJump;
         jump.performed         += instance.OnJump;
         jump.canceled          += instance.OnJump;
         mouseLook.started      += instance.OnMouseLook;
         mouseLook.performed    += instance.OnMouseLook;
         mouseLook.canceled     += instance.OnMouseLook;
     }
 }