Beispiel #1
0
 public void SetCallbacks(ITestActions instance)
 {
     if (m_Wrapper.m_TestActionsCallbackInterface != null)
     {
         Move.started   -= m_Wrapper.m_TestActionsCallbackInterface.OnMove;
         Move.performed -= m_Wrapper.m_TestActionsCallbackInterface.OnMove;
         Move.canceled  -= m_Wrapper.m_TestActionsCallbackInterface.OnMove;
         Look.started   -= m_Wrapper.m_TestActionsCallbackInterface.OnLook;
         Look.performed -= m_Wrapper.m_TestActionsCallbackInterface.OnLook;
         Look.canceled  -= m_Wrapper.m_TestActionsCallbackInterface.OnLook;
         Jump.started   -= m_Wrapper.m_TestActionsCallbackInterface.OnJump;
         Jump.performed -= m_Wrapper.m_TestActionsCallbackInterface.OnJump;
         Jump.canceled  -= m_Wrapper.m_TestActionsCallbackInterface.OnJump;
         Fire.started   -= m_Wrapper.m_TestActionsCallbackInterface.OnFire;
         Fire.performed -= m_Wrapper.m_TestActionsCallbackInterface.OnFire;
         Fire.canceled  -= m_Wrapper.m_TestActionsCallbackInterface.OnFire;
     }
     m_Wrapper.m_TestActionsCallbackInterface = instance;
     if (instance != null)
     {
         Move.started   += instance.OnMove;
         Move.performed += instance.OnMove;
         Move.canceled  += instance.OnMove;
         Look.started   += instance.OnLook;
         Look.performed += instance.OnLook;
         Look.canceled  += instance.OnLook;
         Jump.started   += instance.OnJump;
         Jump.performed += instance.OnJump;
         Jump.canceled  += instance.OnJump;
         Fire.started   += instance.OnFire;
         Fire.performed += instance.OnFire;
         Fire.canceled  += instance.OnFire;
     }
 }
Beispiel #2
0
 public void SetCallbacks(ITestActions instance)
 {
     if (m_Wrapper.m_TestActionsCallbackInterface != null)
     {
         @PressUp.started      -= m_Wrapper.m_TestActionsCallbackInterface.OnPressUp;
         @PressUp.performed    -= m_Wrapper.m_TestActionsCallbackInterface.OnPressUp;
         @PressUp.canceled     -= m_Wrapper.m_TestActionsCallbackInterface.OnPressUp;
         @PressDown.started    -= m_Wrapper.m_TestActionsCallbackInterface.OnPressDown;
         @PressDown.performed  -= m_Wrapper.m_TestActionsCallbackInterface.OnPressDown;
         @PressDown.canceled   -= m_Wrapper.m_TestActionsCallbackInterface.OnPressDown;
         @PressLeft.started    -= m_Wrapper.m_TestActionsCallbackInterface.OnPressLeft;
         @PressLeft.performed  -= m_Wrapper.m_TestActionsCallbackInterface.OnPressLeft;
         @PressLeft.canceled   -= m_Wrapper.m_TestActionsCallbackInterface.OnPressLeft;
         @PressRight.started   -= m_Wrapper.m_TestActionsCallbackInterface.OnPressRight;
         @PressRight.performed -= m_Wrapper.m_TestActionsCallbackInterface.OnPressRight;
         @PressRight.canceled  -= m_Wrapper.m_TestActionsCallbackInterface.OnPressRight;
         @SpeedUp.started      -= m_Wrapper.m_TestActionsCallbackInterface.OnSpeedUp;
         @SpeedUp.performed    -= m_Wrapper.m_TestActionsCallbackInterface.OnSpeedUp;
         @SpeedUp.canceled     -= m_Wrapper.m_TestActionsCallbackInterface.OnSpeedUp;
         @Start.started        -= m_Wrapper.m_TestActionsCallbackInterface.OnStart;
         @Start.performed      -= m_Wrapper.m_TestActionsCallbackInterface.OnStart;
         @Start.canceled       -= m_Wrapper.m_TestActionsCallbackInterface.OnStart;
         @Reload.started       -= m_Wrapper.m_TestActionsCallbackInterface.OnReload;
         @Reload.performed     -= m_Wrapper.m_TestActionsCallbackInterface.OnReload;
         @Reload.canceled      -= m_Wrapper.m_TestActionsCallbackInterface.OnReload;
         @Quit.started         -= m_Wrapper.m_TestActionsCallbackInterface.OnQuit;
         @Quit.performed       -= m_Wrapper.m_TestActionsCallbackInterface.OnQuit;
         @Quit.canceled        -= m_Wrapper.m_TestActionsCallbackInterface.OnQuit;
     }
     m_Wrapper.m_TestActionsCallbackInterface = instance;
     if (instance != null)
     {
         @PressUp.started      += instance.OnPressUp;
         @PressUp.performed    += instance.OnPressUp;
         @PressUp.canceled     += instance.OnPressUp;
         @PressDown.started    += instance.OnPressDown;
         @PressDown.performed  += instance.OnPressDown;
         @PressDown.canceled   += instance.OnPressDown;
         @PressLeft.started    += instance.OnPressLeft;
         @PressLeft.performed  += instance.OnPressLeft;
         @PressLeft.canceled   += instance.OnPressLeft;
         @PressRight.started   += instance.OnPressRight;
         @PressRight.performed += instance.OnPressRight;
         @PressRight.canceled  += instance.OnPressRight;
         @SpeedUp.started      += instance.OnSpeedUp;
         @SpeedUp.performed    += instance.OnSpeedUp;
         @SpeedUp.canceled     += instance.OnSpeedUp;
         @Start.started        += instance.OnStart;
         @Start.performed      += instance.OnStart;
         @Start.canceled       += instance.OnStart;
         @Reload.started       += instance.OnReload;
         @Reload.performed     += instance.OnReload;
         @Reload.canceled      += instance.OnReload;
         @Quit.started         += instance.OnQuit;
         @Quit.performed       += instance.OnQuit;
         @Quit.canceled        += instance.OnQuit;
     }
 }
 public void SetCallbacks(ITestActions instance)
 {
     if (m_Wrapper.m_TestActionsCallbackInterface != null)
     {
         @Newaction.started   -= m_Wrapper.m_TestActionsCallbackInterface.OnNewaction;
         @Newaction.performed -= m_Wrapper.m_TestActionsCallbackInterface.OnNewaction;
         @Newaction.canceled  -= m_Wrapper.m_TestActionsCallbackInterface.OnNewaction;
     }
     m_Wrapper.m_TestActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Newaction.started   += instance.OnNewaction;
         @Newaction.performed += instance.OnNewaction;
         @Newaction.canceled  += instance.OnNewaction;
     }
 }
Beispiel #4
0
 public void SetCallbacks(ITestActions instance)
 {
     if (m_Wrapper.m_TestActionsCallbackInterface != null)
     {
         @D.started         -= m_Wrapper.m_TestActionsCallbackInterface.OnD;
         @D.performed       -= m_Wrapper.m_TestActionsCallbackInterface.OnD;
         @D.canceled        -= m_Wrapper.m_TestActionsCallbackInterface.OnD;
         @A.started         -= m_Wrapper.m_TestActionsCallbackInterface.OnA;
         @A.performed       -= m_Wrapper.m_TestActionsCallbackInterface.OnA;
         @A.canceled        -= m_Wrapper.m_TestActionsCallbackInterface.OnA;
         @Space.started     -= m_Wrapper.m_TestActionsCallbackInterface.OnSpace;
         @Space.performed   -= m_Wrapper.m_TestActionsCallbackInterface.OnSpace;
         @Space.canceled    -= m_Wrapper.m_TestActionsCallbackInterface.OnSpace;
         @Fire.started      -= m_Wrapper.m_TestActionsCallbackInterface.OnFire;
         @Fire.performed    -= m_Wrapper.m_TestActionsCallbackInterface.OnFire;
         @Fire.canceled     -= m_Wrapper.m_TestActionsCallbackInterface.OnFire;
         @ThrowUp.started   -= m_Wrapper.m_TestActionsCallbackInterface.OnThrowUp;
         @ThrowUp.performed -= m_Wrapper.m_TestActionsCallbackInterface.OnThrowUp;
         @ThrowUp.canceled  -= m_Wrapper.m_TestActionsCallbackInterface.OnThrowUp;
     }
     m_Wrapper.m_TestActionsCallbackInterface = instance;
     if (instance != null)
     {
         @D.started         += instance.OnD;
         @D.performed       += instance.OnD;
         @D.canceled        += instance.OnD;
         @A.started         += instance.OnA;
         @A.performed       += instance.OnA;
         @A.canceled        += instance.OnA;
         @Space.started     += instance.OnSpace;
         @Space.performed   += instance.OnSpace;
         @Space.canceled    += instance.OnSpace;
         @Fire.started      += instance.OnFire;
         @Fire.performed    += instance.OnFire;
         @Fire.canceled     += instance.OnFire;
         @ThrowUp.started   += instance.OnThrowUp;
         @ThrowUp.performed += instance.OnThrowUp;
         @ThrowUp.canceled  += instance.OnThrowUp;
     }
 }
Beispiel #5
0
 public void SetCallbacks(ITestActions instance)
 {
     if (m_Wrapper.m_TestActionsCallbackInterface != null)
     {
         @AddMaxHealth.started   -= m_Wrapper.m_TestActionsCallbackInterface.OnAddMaxHealth;
         @AddMaxHealth.performed -= m_Wrapper.m_TestActionsCallbackInterface.OnAddMaxHealth;
         @AddMaxHealth.canceled  -= m_Wrapper.m_TestActionsCallbackInterface.OnAddMaxHealth;
         @DamagePlayer.started   -= m_Wrapper.m_TestActionsCallbackInterface.OnDamagePlayer;
         @DamagePlayer.performed -= m_Wrapper.m_TestActionsCallbackInterface.OnDamagePlayer;
         @DamagePlayer.canceled  -= m_Wrapper.m_TestActionsCallbackInterface.OnDamagePlayer;
     }
     m_Wrapper.m_TestActionsCallbackInterface = instance;
     if (instance != null)
     {
         @AddMaxHealth.started   += instance.OnAddMaxHealth;
         @AddMaxHealth.performed += instance.OnAddMaxHealth;
         @AddMaxHealth.canceled  += instance.OnAddMaxHealth;
         @DamagePlayer.started   += instance.OnDamagePlayer;
         @DamagePlayer.performed += instance.OnDamagePlayer;
         @DamagePlayer.canceled  += instance.OnDamagePlayer;
     }
 }
Beispiel #6
0
 public void SetCallbacks(ITestActions instance)
 {
     if (m_Wrapper.m_TestActionsCallbackInterface != null)
     {
         @Position.started   -= m_Wrapper.m_TestActionsCallbackInterface.OnPosition;
         @Position.performed -= m_Wrapper.m_TestActionsCallbackInterface.OnPosition;
         @Position.canceled  -= m_Wrapper.m_TestActionsCallbackInterface.OnPosition;
         @Drag.started       -= m_Wrapper.m_TestActionsCallbackInterface.OnDrag;
         @Drag.performed     -= m_Wrapper.m_TestActionsCallbackInterface.OnDrag;
         @Drag.canceled      -= m_Wrapper.m_TestActionsCallbackInterface.OnDrag;
     }
     m_Wrapper.m_TestActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Position.started   += instance.OnPosition;
         @Position.performed += instance.OnPosition;
         @Position.canceled  += instance.OnPosition;
         @Drag.started       += instance.OnDrag;
         @Drag.performed     += instance.OnDrag;
         @Drag.canceled      += instance.OnDrag;
     }
 }