public void SetCallbacks(ICursorActions instance) { if (m_Wrapper.m_CursorActionsCallbackInterface != null) { @Move.started -= m_Wrapper.m_CursorActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_CursorActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_CursorActionsCallbackInterface.OnMove; @MoveUPDOWN.started -= m_Wrapper.m_CursorActionsCallbackInterface.OnMoveUPDOWN; @MoveUPDOWN.performed -= m_Wrapper.m_CursorActionsCallbackInterface.OnMoveUPDOWN; @MoveUPDOWN.canceled -= m_Wrapper.m_CursorActionsCallbackInterface.OnMoveUPDOWN; @Circle.started -= m_Wrapper.m_CursorActionsCallbackInterface.OnCircle; @Circle.performed -= m_Wrapper.m_CursorActionsCallbackInterface.OnCircle; @Circle.canceled -= m_Wrapper.m_CursorActionsCallbackInterface.OnCircle; @Cross.started -= m_Wrapper.m_CursorActionsCallbackInterface.OnCross; @Cross.performed -= m_Wrapper.m_CursorActionsCallbackInterface.OnCross; @Cross.canceled -= m_Wrapper.m_CursorActionsCallbackInterface.OnCross; } m_Wrapper.m_CursorActionsCallbackInterface = instance; if (instance != null) { @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; @MoveUPDOWN.started += instance.OnMoveUPDOWN; @MoveUPDOWN.performed += instance.OnMoveUPDOWN; @MoveUPDOWN.canceled += instance.OnMoveUPDOWN; @Circle.started += instance.OnCircle; @Circle.performed += instance.OnCircle; @Circle.canceled += instance.OnCircle; @Cross.started += instance.OnCross; @Cross.performed += instance.OnCross; @Cross.canceled += instance.OnCross; } }
public void SetCallbacks(ICursorActions instance) { if (m_Wrapper.m_CursorActionsCallbackInterface != null) { @Move.started -= m_Wrapper.m_CursorActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_CursorActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_CursorActionsCallbackInterface.OnMove; @Select.started -= m_Wrapper.m_CursorActionsCallbackInterface.OnSelect; @Select.performed -= m_Wrapper.m_CursorActionsCallbackInterface.OnSelect; @Select.canceled -= m_Wrapper.m_CursorActionsCallbackInterface.OnSelect; @Leave.started -= m_Wrapper.m_CursorActionsCallbackInterface.OnLeave; @Leave.performed -= m_Wrapper.m_CursorActionsCallbackInterface.OnLeave; @Leave.canceled -= m_Wrapper.m_CursorActionsCallbackInterface.OnLeave; } m_Wrapper.m_CursorActionsCallbackInterface = instance; if (instance != null) { @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; @Select.started += instance.OnSelect; @Select.performed += instance.OnSelect; @Select.canceled += instance.OnSelect; @Leave.started += instance.OnLeave; @Leave.performed += instance.OnLeave; @Leave.canceled += instance.OnLeave; } }
public void SetCallbacks(ICursorActions instance) { if (m_Wrapper.m_CursorActionsCallbackInterface != null) { @Pos.started -= m_Wrapper.m_CursorActionsCallbackInterface.OnPos; @Pos.performed -= m_Wrapper.m_CursorActionsCallbackInterface.OnPos; @Pos.canceled -= m_Wrapper.m_CursorActionsCallbackInterface.OnPos; } m_Wrapper.m_CursorActionsCallbackInterface = instance; if (instance != null) { @Pos.started += instance.OnPos; @Pos.performed += instance.OnPos; @Pos.canceled += instance.OnPos; } }