public void SetCallbacks(IMenuControlsActions instance) { if (m_Wrapper.m_MenuControlsActionsCallbackInterface != null) { @PauseMenu.started -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnPauseMenu; @PauseMenu.performed -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnPauseMenu; @PauseMenu.canceled -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnPauseMenu; @OpenInventory.started -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnOpenInventory; @OpenInventory.performed -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnOpenInventory; @OpenInventory.canceled -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnOpenInventory; @OpenShop.started -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnOpenShop; @OpenShop.performed -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnOpenShop; @OpenShop.canceled -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnOpenShop; } m_Wrapper.m_MenuControlsActionsCallbackInterface = instance; if (instance != null) { @PauseMenu.started += instance.OnPauseMenu; @PauseMenu.performed += instance.OnPauseMenu; @PauseMenu.canceled += instance.OnPauseMenu; @OpenInventory.started += instance.OnOpenInventory; @OpenInventory.performed += instance.OnOpenInventory; @OpenInventory.canceled += instance.OnOpenInventory; @OpenShop.started += instance.OnOpenShop; @OpenShop.performed += instance.OnOpenShop; @OpenShop.canceled += instance.OnOpenShop; } }
public void SetCallbacks(IMenuControlsActions instance) { if (m_Wrapper.m_MenuControlsActionsCallbackInterface != null) { @Select.started -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnSelect; @Select.performed -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnSelect; @Select.canceled -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnSelect; @Selection.started -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnSelection; @Selection.performed -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnSelection; @Selection.canceled -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnSelection; @Start.started -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnStart; @Start.performed -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnStart; @Start.canceled -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnStart; @Rotate.started -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnRotate; @Rotate.performed -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnRotate; @Rotate.canceled -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnRotate; } m_Wrapper.m_MenuControlsActionsCallbackInterface = instance; if (instance != null) { @Select.started += instance.OnSelect; @Select.performed += instance.OnSelect; @Select.canceled += instance.OnSelect; @Selection.started += instance.OnSelection; @Selection.performed += instance.OnSelection; @Selection.canceled += instance.OnSelection; @Start.started += instance.OnStart; @Start.performed += instance.OnStart; @Start.canceled += instance.OnStart; @Rotate.started += instance.OnRotate; @Rotate.performed += instance.OnRotate; @Rotate.canceled += instance.OnRotate; } }
public void SetCallbacks(IMenuControlsActions instance) { if (m_Wrapper.m_MenuControlsActionsCallbackInterface != null) { @NavUp.started -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnNavUp; @NavUp.performed -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnNavUp; @NavUp.canceled -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnNavUp; @NavDown.started -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnNavDown; @NavDown.performed -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnNavDown; @NavDown.canceled -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnNavDown; @Enter.started -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnEnter; @Enter.performed -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnEnter; @Enter.canceled -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnEnter; @GoTo4x4.started -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnGoTo4x4; @GoTo4x4.performed -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnGoTo4x4; @GoTo4x4.canceled -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnGoTo4x4; } m_Wrapper.m_MenuControlsActionsCallbackInterface = instance; if (instance != null) { @NavUp.started += instance.OnNavUp; @NavUp.performed += instance.OnNavUp; @NavUp.canceled += instance.OnNavUp; @NavDown.started += instance.OnNavDown; @NavDown.performed += instance.OnNavDown; @NavDown.canceled += instance.OnNavDown; @Enter.started += instance.OnEnter; @Enter.performed += instance.OnEnter; @Enter.canceled += instance.OnEnter; @GoTo4x4.started += instance.OnGoTo4x4; @GoTo4x4.performed += instance.OnGoTo4x4; @GoTo4x4.canceled += instance.OnGoTo4x4; } }
public void SetCallbacks(IMenuControlsActions instance) { if (m_Wrapper.m_MenuControlsActionsCallbackInterface != null) { @Menu.started -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnMenu; @Menu.performed -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnMenu; @Menu.canceled -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnMenu; } m_Wrapper.m_MenuControlsActionsCallbackInterface = instance; if (instance != null) { @Menu.started += instance.OnMenu; @Menu.performed += instance.OnMenu; @Menu.canceled += instance.OnMenu; } }
public void SetCallbacks(IMenuControlsActions instance) { if (m_Wrapper.m_MenuControlsActionsCallbackInterface != null) { @ResetLevel.started -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnResetLevel; @ResetLevel.performed -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnResetLevel; @ResetLevel.canceled -= m_Wrapper.m_MenuControlsActionsCallbackInterface.OnResetLevel; } m_Wrapper.m_MenuControlsActionsCallbackInterface = instance; if (instance != null) { @ResetLevel.started += instance.OnResetLevel; @ResetLevel.performed += instance.OnResetLevel; @ResetLevel.canceled += instance.OnResetLevel; } }