public void SetCallbacks(IGroundMovementActions instance)
 {
     if (m_Wrapper.m_GroundMovementActionsCallbackInterface != null)
     {
         @HorizontalMovement.started   -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnHorizontalMovement;
         @HorizontalMovement.performed -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnHorizontalMovement;
         @HorizontalMovement.canceled  -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnHorizontalMovement;
         @Interact.started             -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnInteract;
         @Interact.performed           -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnInteract;
         @Interact.canceled            -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnInteract;
         @MouseX.started   -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnMouseX;
         @MouseX.performed -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnMouseX;
         @MouseX.canceled  -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnMouseX;
         @MouseY.started   -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnMouseY;
         @MouseY.performed -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnMouseY;
         @MouseY.canceled  -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnMouseY;
     }
     m_Wrapper.m_GroundMovementActionsCallbackInterface = instance;
     if (instance != null)
     {
         @HorizontalMovement.started   += instance.OnHorizontalMovement;
         @HorizontalMovement.performed += instance.OnHorizontalMovement;
         @HorizontalMovement.canceled  += instance.OnHorizontalMovement;
         @Interact.started             += instance.OnInteract;
         @Interact.performed           += instance.OnInteract;
         @Interact.canceled            += instance.OnInteract;
         @MouseX.started   += instance.OnMouseX;
         @MouseX.performed += instance.OnMouseX;
         @MouseX.canceled  += instance.OnMouseX;
         @MouseY.started   += instance.OnMouseY;
         @MouseY.performed += instance.OnMouseY;
         @MouseY.canceled  += instance.OnMouseY;
     }
 }
Example #2
0
 public void SetCallbacks(IGroundMovementActions instance)
 {
     if (m_Wrapper.m_GroundMovementActionsCallbackInterface != null)
     {
         @HorizontalMovement.started   -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnHorizontalMovement;
         @HorizontalMovement.performed -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnHorizontalMovement;
         @HorizontalMovement.canceled  -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnHorizontalMovement;
         @Jump.started     -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnJump;
         @Jump.performed   -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnJump;
         @Jump.canceled    -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnJump;
         @MouseX.started   -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnMouseX;
         @MouseX.performed -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnMouseX;
         @MouseX.canceled  -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnMouseX;
         @MouseY.started   -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnMouseY;
         @MouseY.performed -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnMouseY;
         @MouseY.canceled  -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnMouseY;
         @Sprint.started   -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnSprint;
         @Sprint.performed -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnSprint;
         @Sprint.canceled  -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnSprint;
         @Fire.started     -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnFire;
         @Fire.performed   -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnFire;
         @Fire.canceled    -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnFire;
     }
     m_Wrapper.m_GroundMovementActionsCallbackInterface = instance;
     if (instance != null)
     {
         @HorizontalMovement.started   += instance.OnHorizontalMovement;
         @HorizontalMovement.performed += instance.OnHorizontalMovement;
         @HorizontalMovement.canceled  += instance.OnHorizontalMovement;
         @Jump.started     += instance.OnJump;
         @Jump.performed   += instance.OnJump;
         @Jump.canceled    += instance.OnJump;
         @MouseX.started   += instance.OnMouseX;
         @MouseX.performed += instance.OnMouseX;
         @MouseX.canceled  += instance.OnMouseX;
         @MouseY.started   += instance.OnMouseY;
         @MouseY.performed += instance.OnMouseY;
         @MouseY.canceled  += instance.OnMouseY;
         @Sprint.started   += instance.OnSprint;
         @Sprint.performed += instance.OnSprint;
         @Sprint.canceled  += instance.OnSprint;
         @Fire.started     += instance.OnFire;
         @Fire.performed   += instance.OnFire;
         @Fire.canceled    += instance.OnFire;
     }
 }
Example #3
0
 public void SetCallbacks(IGroundMovementActions instance)
 {
     if (m_Wrapper.m_GroundMovementActionsCallbackInterface != null)
     {
         @HorizontalMovement.started   -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnHorizontalMovement;
         @HorizontalMovement.performed -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnHorizontalMovement;
         @HorizontalMovement.canceled  -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnHorizontalMovement;
         @Jump.started     -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnJump;
         @Jump.performed   -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnJump;
         @Jump.canceled    -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnJump;
         @Crouch.started   -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnCrouch;
         @Crouch.performed -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnCrouch;
         @Crouch.canceled  -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnCrouch;
         @Use.started      -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnUse;
         @Use.performed    -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnUse;
         @Use.canceled     -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnUse;
         @Look.started     -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnLook;
         @Look.performed   -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnLook;
         @Look.canceled    -= m_Wrapper.m_GroundMovementActionsCallbackInterface.OnLook;
     }
     m_Wrapper.m_GroundMovementActionsCallbackInterface = instance;
     if (instance != null)
     {
         @HorizontalMovement.started   += instance.OnHorizontalMovement;
         @HorizontalMovement.performed += instance.OnHorizontalMovement;
         @HorizontalMovement.canceled  += instance.OnHorizontalMovement;
         @Jump.started     += instance.OnJump;
         @Jump.performed   += instance.OnJump;
         @Jump.canceled    += instance.OnJump;
         @Crouch.started   += instance.OnCrouch;
         @Crouch.performed += instance.OnCrouch;
         @Crouch.canceled  += instance.OnCrouch;
         @Use.started      += instance.OnUse;
         @Use.performed    += instance.OnUse;
         @Use.canceled     += instance.OnUse;
         @Look.started     += instance.OnLook;
         @Look.performed   += instance.OnLook;
         @Look.canceled    += instance.OnLook;
     }
 }