public void SetCallbacks(IWalkingActions instance)
 {
     if (m_Wrapper.m_WalkingActionsCallbackInterface != null)
     {
         Movement.started       -= m_Wrapper.m_WalkingActionsCallbackInterface.OnMovement;
         Movement.performed     -= m_Wrapper.m_WalkingActionsCallbackInterface.OnMovement;
         Movement.canceled      -= m_Wrapper.m_WalkingActionsCallbackInterface.OnMovement;
         Jump.started           -= m_Wrapper.m_WalkingActionsCallbackInterface.OnJump;
         Jump.performed         -= m_Wrapper.m_WalkingActionsCallbackInterface.OnJump;
         Jump.canceled          -= m_Wrapper.m_WalkingActionsCallbackInterface.OnJump;
         EnterVehicle.started   -= m_Wrapper.m_WalkingActionsCallbackInterface.OnEnterVehicle;
         EnterVehicle.performed -= m_Wrapper.m_WalkingActionsCallbackInterface.OnEnterVehicle;
         EnterVehicle.canceled  -= m_Wrapper.m_WalkingActionsCallbackInterface.OnEnterVehicle;
     }
     m_Wrapper.m_WalkingActionsCallbackInterface = 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;
         EnterVehicle.started   += instance.OnEnterVehicle;
         EnterVehicle.performed += instance.OnEnterVehicle;
         EnterVehicle.canceled  += instance.OnEnterVehicle;
     }
 }
Exemplo n.º 2
0
 public void SetCallbacks(IWalkingActions instance)
 {
     if (m_Wrapper.m_WalkingActionsCallbackInterface != null)
     {
         @Move.started   -= m_Wrapper.m_WalkingActionsCallbackInterface.OnMove;
         @Move.performed -= m_Wrapper.m_WalkingActionsCallbackInterface.OnMove;
         @Move.canceled  -= m_Wrapper.m_WalkingActionsCallbackInterface.OnMove;
         @Look.started   -= m_Wrapper.m_WalkingActionsCallbackInterface.OnLook;
         @Look.performed -= m_Wrapper.m_WalkingActionsCallbackInterface.OnLook;
         @Look.canceled  -= m_Wrapper.m_WalkingActionsCallbackInterface.OnLook;
         @Jump.started   -= m_Wrapper.m_WalkingActionsCallbackInterface.OnJump;
         @Jump.performed -= m_Wrapper.m_WalkingActionsCallbackInterface.OnJump;
         @Jump.canceled  -= m_Wrapper.m_WalkingActionsCallbackInterface.OnJump;
     }
     m_Wrapper.m_WalkingActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Move.started   += instance.OnMove;
         @Move.performed += instance.OnMove;
         @Move.canceled  += instance.OnMove;
         @Look.started   += instance.OnLook;
         @Look.performed += instance.OnLook;
         @Look.canceled  += instance.OnLook;
         @Jump.started   += instance.OnJump;
         @Jump.performed += instance.OnJump;
         @Jump.canceled  += instance.OnJump;
     }
 }
Exemplo n.º 3
0
 public void SetCallbacks(IWalkingActions instance)
 {
     if (m_Wrapper.m_WalkingActionsCallbackInterface != null)
     {
         @Movement.started   -= m_Wrapper.m_WalkingActionsCallbackInterface.OnMovement;
         @Movement.performed -= m_Wrapper.m_WalkingActionsCallbackInterface.OnMovement;
         @Movement.canceled  -= m_Wrapper.m_WalkingActionsCallbackInterface.OnMovement;
         @Interact.started   -= m_Wrapper.m_WalkingActionsCallbackInterface.OnInteract;
         @Interact.performed -= m_Wrapper.m_WalkingActionsCallbackInterface.OnInteract;
         @Interact.canceled  -= m_Wrapper.m_WalkingActionsCallbackInterface.OnInteract;
         @Look.started       -= m_Wrapper.m_WalkingActionsCallbackInterface.OnLook;
         @Look.performed     -= m_Wrapper.m_WalkingActionsCallbackInterface.OnLook;
         @Look.canceled      -= m_Wrapper.m_WalkingActionsCallbackInterface.OnLook;
         @Jump.started       -= m_Wrapper.m_WalkingActionsCallbackInterface.OnJump;
         @Jump.performed     -= m_Wrapper.m_WalkingActionsCallbackInterface.OnJump;
         @Jump.canceled      -= m_Wrapper.m_WalkingActionsCallbackInterface.OnJump;
         @Crouch.started     -= m_Wrapper.m_WalkingActionsCallbackInterface.OnCrouch;
         @Crouch.performed   -= m_Wrapper.m_WalkingActionsCallbackInterface.OnCrouch;
         @Crouch.canceled    -= m_Wrapper.m_WalkingActionsCallbackInterface.OnCrouch;
         @Run.started        -= m_Wrapper.m_WalkingActionsCallbackInterface.OnRun;
         @Run.performed      -= m_Wrapper.m_WalkingActionsCallbackInterface.OnRun;
         @Run.canceled       -= m_Wrapper.m_WalkingActionsCallbackInterface.OnRun;
         @Zoom.started       -= m_Wrapper.m_WalkingActionsCallbackInterface.OnZoom;
         @Zoom.performed     -= m_Wrapper.m_WalkingActionsCallbackInterface.OnZoom;
         @Zoom.canceled      -= m_Wrapper.m_WalkingActionsCallbackInterface.OnZoom;
     }
     m_Wrapper.m_WalkingActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Movement.started   += instance.OnMovement;
         @Movement.performed += instance.OnMovement;
         @Movement.canceled  += instance.OnMovement;
         @Interact.started   += instance.OnInteract;
         @Interact.performed += instance.OnInteract;
         @Interact.canceled  += instance.OnInteract;
         @Look.started       += instance.OnLook;
         @Look.performed     += instance.OnLook;
         @Look.canceled      += instance.OnLook;
         @Jump.started       += instance.OnJump;
         @Jump.performed     += instance.OnJump;
         @Jump.canceled      += instance.OnJump;
         @Crouch.started     += instance.OnCrouch;
         @Crouch.performed   += instance.OnCrouch;
         @Crouch.canceled    += instance.OnCrouch;
         @Run.started        += instance.OnRun;
         @Run.performed      += instance.OnRun;
         @Run.canceled       += instance.OnRun;
         @Zoom.started       += instance.OnZoom;
         @Zoom.performed     += instance.OnZoom;
         @Zoom.canceled      += instance.OnZoom;
     }
 }