public void SetCallbacks(IJoiningActions instance) { if (m_Wrapper.m_JoiningActionsCallbackInterface != null) { @Join.started -= m_Wrapper.m_JoiningActionsCallbackInterface.OnJoin; @Join.performed -= m_Wrapper.m_JoiningActionsCallbackInterface.OnJoin; @Join.canceled -= m_Wrapper.m_JoiningActionsCallbackInterface.OnJoin; } m_Wrapper.m_JoiningActionsCallbackInterface = instance; if (instance != null) { @Join.started += instance.OnJoin; @Join.performed += instance.OnJoin; @Join.canceled += instance.OnJoin; } }
public void SetCallbacks(IJoiningActions instance) { if (m_Wrapper.m_JoiningActionsCallbackInterface != null) { @Movement.started -= m_Wrapper.m_JoiningActionsCallbackInterface.OnMovement; @Movement.performed -= m_Wrapper.m_JoiningActionsCallbackInterface.OnMovement; @Movement.canceled -= m_Wrapper.m_JoiningActionsCallbackInterface.OnMovement; @Select.started -= m_Wrapper.m_JoiningActionsCallbackInterface.OnSelect; @Select.performed -= m_Wrapper.m_JoiningActionsCallbackInterface.OnSelect; @Select.canceled -= m_Wrapper.m_JoiningActionsCallbackInterface.OnSelect; } m_Wrapper.m_JoiningActionsCallbackInterface = instance; if (instance != null) { @Movement.started += instance.OnMovement; @Movement.performed += instance.OnMovement; @Movement.canceled += instance.OnMovement; @Select.started += instance.OnSelect; @Select.performed += instance.OnSelect; @Select.canceled += instance.OnSelect; } }