Пример #1
0
 public void SetCallbacks(IStandardActions instance)
 {
     if (m_Wrapper.m_StandardActionsCallbackInterface != null)
     {
         @Move.started     -= m_Wrapper.m_StandardActionsCallbackInterface.OnMove;
         @Move.performed   -= m_Wrapper.m_StandardActionsCallbackInterface.OnMove;
         @Move.canceled    -= m_Wrapper.m_StandardActionsCallbackInterface.OnMove;
         @Look.started     -= m_Wrapper.m_StandardActionsCallbackInterface.OnLook;
         @Look.performed   -= m_Wrapper.m_StandardActionsCallbackInterface.OnLook;
         @Look.canceled    -= m_Wrapper.m_StandardActionsCallbackInterface.OnLook;
         @Shoot.started    -= m_Wrapper.m_StandardActionsCallbackInterface.OnShoot;
         @Shoot.performed  -= m_Wrapper.m_StandardActionsCallbackInterface.OnShoot;
         @Shoot.canceled   -= m_Wrapper.m_StandardActionsCallbackInterface.OnShoot;
         @Reload.started   -= m_Wrapper.m_StandardActionsCallbackInterface.OnReload;
         @Reload.performed -= m_Wrapper.m_StandardActionsCallbackInterface.OnReload;
         @Reload.canceled  -= m_Wrapper.m_StandardActionsCallbackInterface.OnReload;
     }
     m_Wrapper.m_StandardActionsCallbackInterface = 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;
         @Shoot.started    += instance.OnShoot;
         @Shoot.performed  += instance.OnShoot;
         @Shoot.canceled   += instance.OnShoot;
         @Reload.started   += instance.OnReload;
         @Reload.performed += instance.OnReload;
         @Reload.canceled  += instance.OnReload;
     }
 }
Пример #2
0
 public void SetCallbacks(IStandardActions instance)
 {
     if (m_Wrapper.m_StandardActionsCallbackInterface != null)
     {
         @Run.started               -= m_Wrapper.m_StandardActionsCallbackInterface.OnRun;
         @Run.performed             -= m_Wrapper.m_StandardActionsCallbackInterface.OnRun;
         @Run.canceled              -= m_Wrapper.m_StandardActionsCallbackInterface.OnRun;
         @Jump.started              -= m_Wrapper.m_StandardActionsCallbackInterface.OnJump;
         @Jump.performed            -= m_Wrapper.m_StandardActionsCallbackInterface.OnJump;
         @Jump.canceled             -= m_Wrapper.m_StandardActionsCallbackInterface.OnJump;
         @Trigger1.started          -= m_Wrapper.m_StandardActionsCallbackInterface.OnTrigger1;
         @Trigger1.performed        -= m_Wrapper.m_StandardActionsCallbackInterface.OnTrigger1;
         @Trigger1.canceled         -= m_Wrapper.m_StandardActionsCallbackInterface.OnTrigger1;
         @Trigger2.started          -= m_Wrapper.m_StandardActionsCallbackInterface.OnTrigger2;
         @Trigger2.performed        -= m_Wrapper.m_StandardActionsCallbackInterface.OnTrigger2;
         @Trigger2.canceled         -= m_Wrapper.m_StandardActionsCallbackInterface.OnTrigger2;
         @MouseVelocity.started     -= m_Wrapper.m_StandardActionsCallbackInterface.OnMouseVelocity;
         @MouseVelocity.performed   -= m_Wrapper.m_StandardActionsCallbackInterface.OnMouseVelocity;
         @MouseVelocity.canceled    -= m_Wrapper.m_StandardActionsCallbackInterface.OnMouseVelocity;
         @ToggleInventory.started   -= m_Wrapper.m_StandardActionsCallbackInterface.OnToggleInventory;
         @ToggleInventory.performed -= m_Wrapper.m_StandardActionsCallbackInterface.OnToggleInventory;
         @ToggleInventory.canceled  -= m_Wrapper.m_StandardActionsCallbackInterface.OnToggleInventory;
     }
     m_Wrapper.m_StandardActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Run.started               += instance.OnRun;
         @Run.performed             += instance.OnRun;
         @Run.canceled              += instance.OnRun;
         @Jump.started              += instance.OnJump;
         @Jump.performed            += instance.OnJump;
         @Jump.canceled             += instance.OnJump;
         @Trigger1.started          += instance.OnTrigger1;
         @Trigger1.performed        += instance.OnTrigger1;
         @Trigger1.canceled         += instance.OnTrigger1;
         @Trigger2.started          += instance.OnTrigger2;
         @Trigger2.performed        += instance.OnTrigger2;
         @Trigger2.canceled         += instance.OnTrigger2;
         @MouseVelocity.started     += instance.OnMouseVelocity;
         @MouseVelocity.performed   += instance.OnMouseVelocity;
         @MouseVelocity.canceled    += instance.OnMouseVelocity;
         @ToggleInventory.started   += instance.OnToggleInventory;
         @ToggleInventory.performed += instance.OnToggleInventory;
         @ToggleInventory.canceled  += instance.OnToggleInventory;
     }
 }
Пример #3
0
 public void SetCallbacks(IStandardActions instance)
 {
     if (m_Wrapper.m_StandardActionsCallbackInterface != null)
     {
         @Movement.started   -= m_Wrapper.m_StandardActionsCallbackInterface.OnMovement;
         @Movement.performed -= m_Wrapper.m_StandardActionsCallbackInterface.OnMovement;
         @Movement.canceled  -= m_Wrapper.m_StandardActionsCallbackInterface.OnMovement;
         @Attack.started     -= m_Wrapper.m_StandardActionsCallbackInterface.OnAttack;
         @Attack.performed   -= m_Wrapper.m_StandardActionsCallbackInterface.OnAttack;
         @Attack.canceled    -= m_Wrapper.m_StandardActionsCallbackInterface.OnAttack;
         @Target.started     -= m_Wrapper.m_StandardActionsCallbackInterface.OnTarget;
         @Target.performed   -= m_Wrapper.m_StandardActionsCallbackInterface.OnTarget;
         @Target.canceled    -= m_Wrapper.m_StandardActionsCallbackInterface.OnTarget;
         @FreeCam.started    -= m_Wrapper.m_StandardActionsCallbackInterface.OnFreeCam;
         @FreeCam.performed  -= m_Wrapper.m_StandardActionsCallbackInterface.OnFreeCam;
         @FreeCam.canceled   -= m_Wrapper.m_StandardActionsCallbackInterface.OnFreeCam;
         @Interact.started   -= m_Wrapper.m_StandardActionsCallbackInterface.OnInteract;
         @Interact.performed -= m_Wrapper.m_StandardActionsCallbackInterface.OnInteract;
         @Interact.canceled  -= m_Wrapper.m_StandardActionsCallbackInterface.OnInteract;
     }
     m_Wrapper.m_StandardActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Movement.started   += instance.OnMovement;
         @Movement.performed += instance.OnMovement;
         @Movement.canceled  += instance.OnMovement;
         @Attack.started     += instance.OnAttack;
         @Attack.performed   += instance.OnAttack;
         @Attack.canceled    += instance.OnAttack;
         @Target.started     += instance.OnTarget;
         @Target.performed   += instance.OnTarget;
         @Target.canceled    += instance.OnTarget;
         @FreeCam.started    += instance.OnFreeCam;
         @FreeCam.performed  += instance.OnFreeCam;
         @FreeCam.canceled   += instance.OnFreeCam;
         @Interact.started   += instance.OnInteract;
         @Interact.performed += instance.OnInteract;
         @Interact.canceled  += instance.OnInteract;
     }
 }
Пример #4
0
 public void SetCallbacks(IStandardActions instance)
 {
     if (m_Wrapper.m_StandardActionsCallbackInterface != null)
     {
         @Move.started       -= m_Wrapper.m_StandardActionsCallbackInterface.OnMove;
         @Move.performed     -= m_Wrapper.m_StandardActionsCallbackInterface.OnMove;
         @Move.canceled      -= m_Wrapper.m_StandardActionsCallbackInterface.OnMove;
         @Interact.started   -= m_Wrapper.m_StandardActionsCallbackInterface.OnInteract;
         @Interact.performed -= m_Wrapper.m_StandardActionsCallbackInterface.OnInteract;
         @Interact.canceled  -= m_Wrapper.m_StandardActionsCallbackInterface.OnInteract;
     }
     m_Wrapper.m_StandardActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Move.started       += instance.OnMove;
         @Move.performed     += instance.OnMove;
         @Move.canceled      += instance.OnMove;
         @Interact.started   += instance.OnInteract;
         @Interact.performed += instance.OnInteract;
         @Interact.canceled  += instance.OnInteract;
     }
 }
Пример #5
0
 public void SetCallbacks(IStandardActions instance)
 {
     if (m_Wrapper.m_StandardActionsCallbackInterface != null)
     {
         @Movement.started     -= m_Wrapper.m_StandardActionsCallbackInterface.OnMovement;
         @Movement.performed   -= m_Wrapper.m_StandardActionsCallbackInterface.OnMovement;
         @Movement.canceled    -= m_Wrapper.m_StandardActionsCallbackInterface.OnMovement;
         @Turn.started         -= m_Wrapper.m_StandardActionsCallbackInterface.OnTurn;
         @Turn.performed       -= m_Wrapper.m_StandardActionsCallbackInterface.OnTurn;
         @Turn.canceled        -= m_Wrapper.m_StandardActionsCallbackInterface.OnTurn;
         @Walk.started         -= m_Wrapper.m_StandardActionsCallbackInterface.OnWalk;
         @Walk.performed       -= m_Wrapper.m_StandardActionsCallbackInterface.OnWalk;
         @Walk.canceled        -= m_Wrapper.m_StandardActionsCallbackInterface.OnWalk;
         @ToggleMove.started   -= m_Wrapper.m_StandardActionsCallbackInterface.OnToggleMove;
         @ToggleMove.performed -= m_Wrapper.m_StandardActionsCallbackInterface.OnToggleMove;
         @ToggleMove.canceled  -= m_Wrapper.m_StandardActionsCallbackInterface.OnToggleMove;
         @Jump.started         -= m_Wrapper.m_StandardActionsCallbackInterface.OnJump;
         @Jump.performed       -= m_Wrapper.m_StandardActionsCallbackInterface.OnJump;
         @Jump.canceled        -= m_Wrapper.m_StandardActionsCallbackInterface.OnJump;
         @Stop.started         -= m_Wrapper.m_StandardActionsCallbackInterface.OnStop;
         @Stop.performed       -= m_Wrapper.m_StandardActionsCallbackInterface.OnStop;
         @Stop.canceled        -= m_Wrapper.m_StandardActionsCallbackInterface.OnStop;
         @Zoom.started         -= m_Wrapper.m_StandardActionsCallbackInterface.OnZoom;
         @Zoom.performed       -= m_Wrapper.m_StandardActionsCallbackInterface.OnZoom;
         @Zoom.canceled        -= m_Wrapper.m_StandardActionsCallbackInterface.OnZoom;
         @Mouse.started        -= m_Wrapper.m_StandardActionsCallbackInterface.OnMouse;
         @Mouse.performed      -= m_Wrapper.m_StandardActionsCallbackInterface.OnMouse;
         @Mouse.canceled       -= m_Wrapper.m_StandardActionsCallbackInterface.OnMouse;
         @LeftButton.started   -= m_Wrapper.m_StandardActionsCallbackInterface.OnLeftButton;
         @LeftButton.performed -= m_Wrapper.m_StandardActionsCallbackInterface.OnLeftButton;
         @LeftButton.canceled  -= m_Wrapper.m_StandardActionsCallbackInterface.OnLeftButton;
         @Point.started        -= m_Wrapper.m_StandardActionsCallbackInterface.OnPoint;
         @Point.performed      -= m_Wrapper.m_StandardActionsCallbackInterface.OnPoint;
         @Point.canceled       -= m_Wrapper.m_StandardActionsCallbackInterface.OnPoint;
     }
     m_Wrapper.m_StandardActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Movement.started     += instance.OnMovement;
         @Movement.performed   += instance.OnMovement;
         @Movement.canceled    += instance.OnMovement;
         @Turn.started         += instance.OnTurn;
         @Turn.performed       += instance.OnTurn;
         @Turn.canceled        += instance.OnTurn;
         @Walk.started         += instance.OnWalk;
         @Walk.performed       += instance.OnWalk;
         @Walk.canceled        += instance.OnWalk;
         @ToggleMove.started   += instance.OnToggleMove;
         @ToggleMove.performed += instance.OnToggleMove;
         @ToggleMove.canceled  += instance.OnToggleMove;
         @Jump.started         += instance.OnJump;
         @Jump.performed       += instance.OnJump;
         @Jump.canceled        += instance.OnJump;
         @Stop.started         += instance.OnStop;
         @Stop.performed       += instance.OnStop;
         @Stop.canceled        += instance.OnStop;
         @Zoom.started         += instance.OnZoom;
         @Zoom.performed       += instance.OnZoom;
         @Zoom.canceled        += instance.OnZoom;
         @Mouse.started        += instance.OnMouse;
         @Mouse.performed      += instance.OnMouse;
         @Mouse.canceled       += instance.OnMouse;
         @LeftButton.started   += instance.OnLeftButton;
         @LeftButton.performed += instance.OnLeftButton;
         @LeftButton.canceled  += instance.OnLeftButton;
         @Point.started        += instance.OnPoint;
         @Point.performed      += instance.OnPoint;
         @Point.canceled       += instance.OnPoint;
     }
 }