public void SetCallbacks(IClickActions instance) { if (m_Wrapper.m_ClickActionsCallbackInterface != null) { @Clicked.started -= m_Wrapper.m_ClickActionsCallbackInterface.OnClicked; @Clicked.performed -= m_Wrapper.m_ClickActionsCallbackInterface.OnClicked; @Clicked.canceled -= m_Wrapper.m_ClickActionsCallbackInterface.OnClicked; } m_Wrapper.m_ClickActionsCallbackInterface = instance; if (instance != null) { @Clicked.started += instance.OnClicked; @Clicked.performed += instance.OnClicked; @Clicked.canceled += instance.OnClicked; } }
public void SetCallbacks(IClickActions instance) { if (m_Wrapper.m_ClickActionsCallbackInterface != null) { @Newaction.started -= m_Wrapper.m_ClickActionsCallbackInterface.OnNewaction; @Newaction.performed -= m_Wrapper.m_ClickActionsCallbackInterface.OnNewaction; @Newaction.canceled -= m_Wrapper.m_ClickActionsCallbackInterface.OnNewaction; } m_Wrapper.m_ClickActionsCallbackInterface = instance; if (instance != null) { @Newaction.started += instance.OnNewaction; @Newaction.performed += instance.OnNewaction; @Newaction.canceled += instance.OnNewaction; } }