Example #1
0
 public void SetCallbacks(IBoatControlsActions instance)
 {
     if (m_Wrapper.m_BoatControlsActionsCallbackInterface != null)
     {
         @Trottle.started    -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnTrottle;
         @Trottle.performed  -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnTrottle;
         @Trottle.canceled   -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnTrottle;
         @Steering.started   -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnSteering;
         @Steering.performed -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnSteering;
         @Steering.canceled  -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnSteering;
         @Reset.started      -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnReset;
         @Reset.performed    -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnReset;
         @Reset.canceled     -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnReset;
         @Pause.started      -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnPause;
         @Pause.performed    -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnPause;
         @Pause.canceled     -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnPause;
     }
     m_Wrapper.m_BoatControlsActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Trottle.started    += instance.OnTrottle;
         @Trottle.performed  += instance.OnTrottle;
         @Trottle.canceled   += instance.OnTrottle;
         @Steering.started   += instance.OnSteering;
         @Steering.performed += instance.OnSteering;
         @Steering.canceled  += instance.OnSteering;
         @Reset.started      += instance.OnReset;
         @Reset.performed    += instance.OnReset;
         @Reset.canceled     += instance.OnReset;
         @Pause.started      += instance.OnPause;
         @Pause.performed    += instance.OnPause;
         @Pause.canceled     += instance.OnPause;
     }
 }
Example #2
0
 public void SetCallbacks(IBoatControlsActions instance)
 {
     if (m_Wrapper.m_BoatControlsActionsCallbackInterface != null)
     {
         Trottle.started    -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnTrottle;
         Trottle.performed  -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnTrottle;
         Trottle.canceled   -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnTrottle;
         Steering.started   -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnSteering;
         Steering.performed -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnSteering;
         Steering.canceled  -= m_Wrapper.m_BoatControlsActionsCallbackInterface.OnSteering;
     }
     m_Wrapper.m_BoatControlsActionsCallbackInterface = instance;
     if (instance != null)
     {
         Trottle.started    += instance.OnTrottle;
         Trottle.performed  += instance.OnTrottle;
         Trottle.canceled   += instance.OnTrottle;
         Steering.started   += instance.OnSteering;
         Steering.performed += instance.OnSteering;
         Steering.canceled  += instance.OnSteering;
     }
 }