public void SetCallbacks(IMouseActions instance) { if (m_Wrapper.m_MouseActionsCallbackInterface != null) { @Click.started -= m_Wrapper.m_MouseActionsCallbackInterface.OnClick; @Click.performed -= m_Wrapper.m_MouseActionsCallbackInterface.OnClick; @Click.canceled -= m_Wrapper.m_MouseActionsCallbackInterface.OnClick; @Position.started -= m_Wrapper.m_MouseActionsCallbackInterface.OnPosition; @Position.performed -= m_Wrapper.m_MouseActionsCallbackInterface.OnPosition; @Position.canceled -= m_Wrapper.m_MouseActionsCallbackInterface.OnPosition; @Erase.started -= m_Wrapper.m_MouseActionsCallbackInterface.OnErase; @Erase.performed -= m_Wrapper.m_MouseActionsCallbackInterface.OnErase; @Erase.canceled -= m_Wrapper.m_MouseActionsCallbackInterface.OnErase; @Zoom.started -= m_Wrapper.m_MouseActionsCallbackInterface.OnZoom; @Zoom.performed -= m_Wrapper.m_MouseActionsCallbackInterface.OnZoom; @Zoom.canceled -= m_Wrapper.m_MouseActionsCallbackInterface.OnZoom; } m_Wrapper.m_MouseActionsCallbackInterface = instance; if (instance != null) { @Click.started += instance.OnClick; @Click.performed += instance.OnClick; @Click.canceled += instance.OnClick; @Position.started += instance.OnPosition; @Position.performed += instance.OnPosition; @Position.canceled += instance.OnPosition; @Erase.started += instance.OnErase; @Erase.performed += instance.OnErase; @Erase.canceled += instance.OnErase; @Zoom.started += instance.OnZoom; @Zoom.performed += instance.OnZoom; @Zoom.canceled += instance.OnZoom; } }
public void SetCallbacks(IMouseActions instance) { if (m_Wrapper.m_MouseActionsCallbackInterface != null) { @MouseClick.started -= m_Wrapper.m_MouseActionsCallbackInterface.OnMouseClick; @MouseClick.performed -= m_Wrapper.m_MouseActionsCallbackInterface.OnMouseClick; @MouseClick.canceled -= m_Wrapper.m_MouseActionsCallbackInterface.OnMouseClick; @MousePosition.started -= m_Wrapper.m_MouseActionsCallbackInterface.OnMousePosition; @MousePosition.performed -= m_Wrapper.m_MouseActionsCallbackInterface.OnMousePosition; @MousePosition.canceled -= m_Wrapper.m_MouseActionsCallbackInterface.OnMousePosition; @CancelBuild.started -= m_Wrapper.m_MouseActionsCallbackInterface.OnCancelBuild; @CancelBuild.performed -= m_Wrapper.m_MouseActionsCallbackInterface.OnCancelBuild; @CancelBuild.canceled -= m_Wrapper.m_MouseActionsCallbackInterface.OnCancelBuild; } m_Wrapper.m_MouseActionsCallbackInterface = instance; if (instance != null) { @MouseClick.started += instance.OnMouseClick; @MouseClick.performed += instance.OnMouseClick; @MouseClick.canceled += instance.OnMouseClick; @MousePosition.started += instance.OnMousePosition; @MousePosition.performed += instance.OnMousePosition; @MousePosition.canceled += instance.OnMousePosition; @CancelBuild.started += instance.OnCancelBuild; @CancelBuild.performed += instance.OnCancelBuild; @CancelBuild.canceled += instance.OnCancelBuild; } }
public void SetCallbacks(IMouseActions instance) { if (m_Wrapper.m_MouseActionsCallbackInterface != null) { @MouseClickLeft.started -= m_Wrapper.m_MouseActionsCallbackInterface.OnMouseClickLeft; @MouseClickLeft.performed -= m_Wrapper.m_MouseActionsCallbackInterface.OnMouseClickLeft; @MouseClickLeft.canceled -= m_Wrapper.m_MouseActionsCallbackInterface.OnMouseClickLeft; @MousePosition.started -= m_Wrapper.m_MouseActionsCallbackInterface.OnMousePosition; @MousePosition.performed -= m_Wrapper.m_MouseActionsCallbackInterface.OnMousePosition; @MousePosition.canceled -= m_Wrapper.m_MouseActionsCallbackInterface.OnMousePosition; @MouseClickRight.started -= m_Wrapper.m_MouseActionsCallbackInterface.OnMouseClickRight; @MouseClickRight.performed -= m_Wrapper.m_MouseActionsCallbackInterface.OnMouseClickRight; @MouseClickRight.canceled -= m_Wrapper.m_MouseActionsCallbackInterface.OnMouseClickRight; } m_Wrapper.m_MouseActionsCallbackInterface = instance; if (instance != null) { @MouseClickLeft.started += instance.OnMouseClickLeft; @MouseClickLeft.performed += instance.OnMouseClickLeft; @MouseClickLeft.canceled += instance.OnMouseClickLeft; @MousePosition.started += instance.OnMousePosition; @MousePosition.performed += instance.OnMousePosition; @MousePosition.canceled += instance.OnMousePosition; @MouseClickRight.started += instance.OnMouseClickRight; @MouseClickRight.performed += instance.OnMouseClickRight; @MouseClickRight.canceled += instance.OnMouseClickRight; } }
public void SetCallbacks(IMouseActions instance) { if (m_Wrapper.m_MouseActionsCallbackInterface != null) { @Interact.started -= m_Wrapper.m_MouseActionsCallbackInterface.OnInteract; @Interact.performed -= m_Wrapper.m_MouseActionsCallbackInterface.OnInteract; @Interact.canceled -= m_Wrapper.m_MouseActionsCallbackInterface.OnInteract; } m_Wrapper.m_MouseActionsCallbackInterface = instance; if (instance != null) { @Interact.started += instance.OnInteract; @Interact.performed += instance.OnInteract; @Interact.canceled += instance.OnInteract; } }
public void SetCallbacks(IMouseActions instance) { if (m_Wrapper.m_MouseActionsCallbackInterface != null) { @Position.started -= m_Wrapper.m_MouseActionsCallbackInterface.OnPosition; @Position.performed -= m_Wrapper.m_MouseActionsCallbackInterface.OnPosition; @Position.canceled -= m_Wrapper.m_MouseActionsCallbackInterface.OnPosition; @Scroll.started -= m_Wrapper.m_MouseActionsCallbackInterface.OnScroll; @Scroll.performed -= m_Wrapper.m_MouseActionsCallbackInterface.OnScroll; @Scroll.canceled -= m_Wrapper.m_MouseActionsCallbackInterface.OnScroll; } m_Wrapper.m_MouseActionsCallbackInterface = instance; if (instance != null) { @Position.started += instance.OnPosition; @Position.performed += instance.OnPosition; @Position.canceled += instance.OnPosition; @Scroll.started += instance.OnScroll; @Scroll.performed += instance.OnScroll; @Scroll.canceled += instance.OnScroll; } }
public void SetCallbacks(IMouseActions instance) { if (m_Wrapper.m_MouseActionsCallbackInterface != null) { @Pos.started -= m_Wrapper.m_MouseActionsCallbackInterface.OnPos; @Pos.performed -= m_Wrapper.m_MouseActionsCallbackInterface.OnPos; @Pos.canceled -= m_Wrapper.m_MouseActionsCallbackInterface.OnPos; @Delta.started -= m_Wrapper.m_MouseActionsCallbackInterface.OnDelta; @Delta.performed -= m_Wrapper.m_MouseActionsCallbackInterface.OnDelta; @Delta.canceled -= m_Wrapper.m_MouseActionsCallbackInterface.OnDelta; } m_Wrapper.m_MouseActionsCallbackInterface = instance; if (instance != null) { @Pos.started += instance.OnPos; @Pos.performed += instance.OnPos; @Pos.canceled += instance.OnPos; @Delta.started += instance.OnDelta; @Delta.performed += instance.OnDelta; @Delta.canceled += instance.OnDelta; } }
public void SetCallbacks(IMouseActions instance) { if (m_Wrapper.m_MouseActionsCallbackInterface != null) { @Move.started -= m_Wrapper.m_MouseActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_MouseActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_MouseActionsCallbackInterface.OnMove; @PickUp.started -= m_Wrapper.m_MouseActionsCallbackInterface.OnPickUp; @PickUp.performed -= m_Wrapper.m_MouseActionsCallbackInterface.OnPickUp; @PickUp.canceled -= m_Wrapper.m_MouseActionsCallbackInterface.OnPickUp; } m_Wrapper.m_MouseActionsCallbackInterface = instance; if (instance != null) { @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; @PickUp.started += instance.OnPickUp; @PickUp.performed += instance.OnPickUp; @PickUp.canceled += instance.OnPickUp; } }