Exemplo n.º 1
0
 public void SetCallbacks(IShipActions instance)
 {
     if (m_Wrapper.m_ShipActionsCallbackInterface != null)
     {
         @LMB.started             -= m_Wrapper.m_ShipActionsCallbackInterface.OnLMB;
         @LMB.performed           -= m_Wrapper.m_ShipActionsCallbackInterface.OnLMB;
         @LMB.canceled            -= m_Wrapper.m_ShipActionsCallbackInterface.OnLMB;
         @MousePosition.started   -= m_Wrapper.m_ShipActionsCallbackInterface.OnMousePosition;
         @MousePosition.performed -= m_Wrapper.m_ShipActionsCallbackInterface.OnMousePosition;
         @MousePosition.canceled  -= m_Wrapper.m_ShipActionsCallbackInterface.OnMousePosition;
         @RMB.started             -= m_Wrapper.m_ShipActionsCallbackInterface.OnRMB;
         @RMB.performed           -= m_Wrapper.m_ShipActionsCallbackInterface.OnRMB;
         @RMB.canceled            -= m_Wrapper.m_ShipActionsCallbackInterface.OnRMB;
     }
     m_Wrapper.m_ShipActionsCallbackInterface = instance;
     if (instance != null)
     {
         @LMB.started             += instance.OnLMB;
         @LMB.performed           += instance.OnLMB;
         @LMB.canceled            += instance.OnLMB;
         @MousePosition.started   += instance.OnMousePosition;
         @MousePosition.performed += instance.OnMousePosition;
         @MousePosition.canceled  += instance.OnMousePosition;
         @RMB.started             += instance.OnRMB;
         @RMB.performed           += instance.OnRMB;
         @RMB.canceled            += instance.OnRMB;
     }
 }
 public void SetCallbacks(IShipActions instance)
 {
     if (m_Wrapper.m_ShipActionsCallbackInterface != null)
     {
         @Movement.started   -= m_Wrapper.m_ShipActionsCallbackInterface.OnMovement;
         @Movement.performed -= m_Wrapper.m_ShipActionsCallbackInterface.OnMovement;
         @Movement.canceled  -= m_Wrapper.m_ShipActionsCallbackInterface.OnMovement;
         @Fire.started       -= m_Wrapper.m_ShipActionsCallbackInterface.OnFire;
         @Fire.performed     -= m_Wrapper.m_ShipActionsCallbackInterface.OnFire;
         @Fire.canceled      -= m_Wrapper.m_ShipActionsCallbackInterface.OnFire;
         @Pause.started      -= m_Wrapper.m_ShipActionsCallbackInterface.OnPause;
         @Pause.performed    -= m_Wrapper.m_ShipActionsCallbackInterface.OnPause;
         @Pause.canceled     -= m_Wrapper.m_ShipActionsCallbackInterface.OnPause;
     }
     m_Wrapper.m_ShipActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Movement.started   += instance.OnMovement;
         @Movement.performed += instance.OnMovement;
         @Movement.canceled  += instance.OnMovement;
         @Fire.started       += instance.OnFire;
         @Fire.performed     += instance.OnFire;
         @Fire.canceled      += instance.OnFire;
         @Pause.started      += instance.OnPause;
         @Pause.performed    += instance.OnPause;
         @Pause.canceled     += instance.OnPause;
     }
 }
Exemplo n.º 3
0
 public void SetCallbacks(IShipActions instance)
 {
     if (m_Wrapper.m_ShipActionsCallbackInterface != null)
     {
         @Fire.started   -= m_Wrapper.m_ShipActionsCallbackInterface.OnFire;
         @Fire.performed -= m_Wrapper.m_ShipActionsCallbackInterface.OnFire;
         @Fire.canceled  -= m_Wrapper.m_ShipActionsCallbackInterface.OnFire;
         @Move.started   -= m_Wrapper.m_ShipActionsCallbackInterface.OnMove;
         @Move.performed -= m_Wrapper.m_ShipActionsCallbackInterface.OnMove;
         @Move.canceled  -= m_Wrapper.m_ShipActionsCallbackInterface.OnMove;
         @Aim.started    -= m_Wrapper.m_ShipActionsCallbackInterface.OnAim;
         @Aim.performed  -= m_Wrapper.m_ShipActionsCallbackInterface.OnAim;
         @Aim.canceled   -= m_Wrapper.m_ShipActionsCallbackInterface.OnAim;
     }
     m_Wrapper.m_ShipActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Fire.started   += instance.OnFire;
         @Fire.performed += instance.OnFire;
         @Fire.canceled  += instance.OnFire;
         @Move.started   += instance.OnMove;
         @Move.performed += instance.OnMove;
         @Move.canceled  += instance.OnMove;
         @Aim.started    += instance.OnAim;
         @Aim.performed  += instance.OnAim;
         @Aim.canceled   += instance.OnAim;
     }
 }
Exemplo n.º 4
0
 public void SetCallbacks(IShipActions instance)
 {
     if (m_Wrapper.m_ShipActionsCallbackInterface != null)
     {
         @Horizontal.started   -= m_Wrapper.m_ShipActionsCallbackInterface.OnHorizontal;
         @Horizontal.performed -= m_Wrapper.m_ShipActionsCallbackInterface.OnHorizontal;
         @Horizontal.canceled  -= m_Wrapper.m_ShipActionsCallbackInterface.OnHorizontal;
         @Vertical.started     -= m_Wrapper.m_ShipActionsCallbackInterface.OnVertical;
         @Vertical.performed   -= m_Wrapper.m_ShipActionsCallbackInterface.OnVertical;
         @Vertical.canceled    -= m_Wrapper.m_ShipActionsCallbackInterface.OnVertical;
         @Boost.started        -= m_Wrapper.m_ShipActionsCallbackInterface.OnBoost;
         @Boost.performed      -= m_Wrapper.m_ShipActionsCallbackInterface.OnBoost;
         @Boost.canceled       -= m_Wrapper.m_ShipActionsCallbackInterface.OnBoost;
         @Break.started        -= m_Wrapper.m_ShipActionsCallbackInterface.OnBreak;
         @Break.performed      -= m_Wrapper.m_ShipActionsCallbackInterface.OnBreak;
         @Break.canceled       -= m_Wrapper.m_ShipActionsCallbackInterface.OnBreak;
         @Shoot.started        -= m_Wrapper.m_ShipActionsCallbackInterface.OnShoot;
         @Shoot.performed      -= m_Wrapper.m_ShipActionsCallbackInterface.OnShoot;
         @Shoot.canceled       -= m_Wrapper.m_ShipActionsCallbackInterface.OnShoot;
         @TiltLeft.started     -= m_Wrapper.m_ShipActionsCallbackInterface.OnTiltLeft;
         @TiltLeft.performed   -= m_Wrapper.m_ShipActionsCallbackInterface.OnTiltLeft;
         @TiltLeft.canceled    -= m_Wrapper.m_ShipActionsCallbackInterface.OnTiltLeft;
         @TiltRight.started    -= m_Wrapper.m_ShipActionsCallbackInterface.OnTiltRight;
         @TiltRight.performed  -= m_Wrapper.m_ShipActionsCallbackInterface.OnTiltRight;
         @TiltRight.canceled   -= m_Wrapper.m_ShipActionsCallbackInterface.OnTiltRight;
         @AltShoot.started     -= m_Wrapper.m_ShipActionsCallbackInterface.OnAltShoot;
         @AltShoot.performed   -= m_Wrapper.m_ShipActionsCallbackInterface.OnAltShoot;
         @AltShoot.canceled    -= m_Wrapper.m_ShipActionsCallbackInterface.OnAltShoot;
     }
     m_Wrapper.m_ShipActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Horizontal.started   += instance.OnHorizontal;
         @Horizontal.performed += instance.OnHorizontal;
         @Horizontal.canceled  += instance.OnHorizontal;
         @Vertical.started     += instance.OnVertical;
         @Vertical.performed   += instance.OnVertical;
         @Vertical.canceled    += instance.OnVertical;
         @Boost.started        += instance.OnBoost;
         @Boost.performed      += instance.OnBoost;
         @Boost.canceled       += instance.OnBoost;
         @Break.started        += instance.OnBreak;
         @Break.performed      += instance.OnBreak;
         @Break.canceled       += instance.OnBreak;
         @Shoot.started        += instance.OnShoot;
         @Shoot.performed      += instance.OnShoot;
         @Shoot.canceled       += instance.OnShoot;
         @TiltLeft.started     += instance.OnTiltLeft;
         @TiltLeft.performed   += instance.OnTiltLeft;
         @TiltLeft.canceled    += instance.OnTiltLeft;
         @TiltRight.started    += instance.OnTiltRight;
         @TiltRight.performed  += instance.OnTiltRight;
         @TiltRight.canceled   += instance.OnTiltRight;
         @AltShoot.started     += instance.OnAltShoot;
         @AltShoot.performed   += instance.OnAltShoot;
         @AltShoot.canceled    += instance.OnAltShoot;
     }
 }
 public void SetCallbacks(IShipActions instance)
 {
     if (m_Wrapper.m_ShipActionsCallbackInterface != null)
     {
         @Accelerate.started       -= m_Wrapper.m_ShipActionsCallbackInterface.OnAccelerate;
         @Accelerate.performed     -= m_Wrapper.m_ShipActionsCallbackInterface.OnAccelerate;
         @Accelerate.canceled      -= m_Wrapper.m_ShipActionsCallbackInterface.OnAccelerate;
         @Rotate.started           -= m_Wrapper.m_ShipActionsCallbackInterface.OnRotate;
         @Rotate.performed         -= m_Wrapper.m_ShipActionsCallbackInterface.OnRotate;
         @Rotate.canceled          -= m_Wrapper.m_ShipActionsCallbackInterface.OnRotate;
         @Roll.started             -= m_Wrapper.m_ShipActionsCallbackInterface.OnRoll;
         @Roll.performed           -= m_Wrapper.m_ShipActionsCallbackInterface.OnRoll;
         @Roll.canceled            -= m_Wrapper.m_ShipActionsCallbackInterface.OnRoll;
         @MoveUp.started           -= m_Wrapper.m_ShipActionsCallbackInterface.OnMoveUp;
         @MoveUp.performed         -= m_Wrapper.m_ShipActionsCallbackInterface.OnMoveUp;
         @MoveUp.canceled          -= m_Wrapper.m_ShipActionsCallbackInterface.OnMoveUp;
         @CameraRotation.started   -= m_Wrapper.m_ShipActionsCallbackInterface.OnCameraRotation;
         @CameraRotation.performed -= m_Wrapper.m_ShipActionsCallbackInterface.OnCameraRotation;
         @CameraRotation.canceled  -= m_Wrapper.m_ShipActionsCallbackInterface.OnCameraRotation;
         @ShootLaser.started       -= m_Wrapper.m_ShipActionsCallbackInterface.OnShootLaser;
         @ShootLaser.performed     -= m_Wrapper.m_ShipActionsCallbackInterface.OnShootLaser;
         @ShootLaser.canceled      -= m_Wrapper.m_ShipActionsCallbackInterface.OnShootLaser;
         @ShootRocket.started      -= m_Wrapper.m_ShipActionsCallbackInterface.OnShootRocket;
         @ShootRocket.performed    -= m_Wrapper.m_ShipActionsCallbackInterface.OnShootRocket;
         @ShootRocket.canceled     -= m_Wrapper.m_ShipActionsCallbackInterface.OnShootRocket;
     }
     m_Wrapper.m_ShipActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Accelerate.started       += instance.OnAccelerate;
         @Accelerate.performed     += instance.OnAccelerate;
         @Accelerate.canceled      += instance.OnAccelerate;
         @Rotate.started           += instance.OnRotate;
         @Rotate.performed         += instance.OnRotate;
         @Rotate.canceled          += instance.OnRotate;
         @Roll.started             += instance.OnRoll;
         @Roll.performed           += instance.OnRoll;
         @Roll.canceled            += instance.OnRoll;
         @MoveUp.started           += instance.OnMoveUp;
         @MoveUp.performed         += instance.OnMoveUp;
         @MoveUp.canceled          += instance.OnMoveUp;
         @CameraRotation.started   += instance.OnCameraRotation;
         @CameraRotation.performed += instance.OnCameraRotation;
         @CameraRotation.canceled  += instance.OnCameraRotation;
         @ShootLaser.started       += instance.OnShootLaser;
         @ShootLaser.performed     += instance.OnShootLaser;
         @ShootLaser.canceled      += instance.OnShootLaser;
         @ShootRocket.started      += instance.OnShootRocket;
         @ShootRocket.performed    += instance.OnShootRocket;
         @ShootRocket.canceled     += instance.OnShootRocket;
     }
 }