public PlayerController( IPlayerQueries playerQueries, IPlayerCommands playerCommands, IPlayerActions playerActions, UserContext userContext) : base(userContext) { _playerQueries = playerQueries; _playerCommands = playerCommands; _playerActions = playerActions; }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @Move.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove; @Dash.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDash; @Dash.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDash; @Dash.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDash; @Reload.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnReload; @Reload.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnReload; @Reload.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnReload; @Aim.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnAim; @Aim.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnAim; @Aim.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnAim; @Shoot.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnShoot; @Shoot.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnShoot; @Shoot.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnShoot; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; @Dash.started += instance.OnDash; @Dash.performed += instance.OnDash; @Dash.canceled += instance.OnDash; @Reload.started += instance.OnReload; @Reload.performed += instance.OnReload; @Reload.canceled += instance.OnReload; @Aim.started += instance.OnAim; @Aim.performed += instance.OnAim; @Aim.canceled += instance.OnAim; @Shoot.started += instance.OnShoot; @Shoot.performed += instance.OnShoot; @Shoot.canceled += instance.OnShoot; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @aim.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnAim; @aim.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnAim; @aim.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnAim; @shoot.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnShoot; @shoot.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnShoot; @shoot.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnShoot; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @aim.started += instance.OnAim; @aim.performed += instance.OnAim; @aim.canceled += instance.OnAim; @shoot.started += instance.OnShoot; @shoot.performed += instance.OnShoot; @shoot.canceled += instance.OnShoot; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @Fire.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnFire; @Fire.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnFire; @Fire.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnFire; @Quit.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnQuit; @Quit.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnQuit; @Quit.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnQuit; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @Fire.started += instance.OnFire; @Fire.performed += instance.OnFire; @Fire.canceled += instance.OnFire; @Quit.started += instance.OnQuit; @Quit.performed += instance.OnQuit; @Quit.canceled += instance.OnQuit; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @Move.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove; @PlatformSpawn.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnPlatformSpawn; @PlatformSpawn.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnPlatformSpawn; @PlatformSpawn.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnPlatformSpawn; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; @PlatformSpawn.started += instance.OnPlatformSpawn; @PlatformSpawn.performed += instance.OnPlatformSpawn; @PlatformSpawn.canceled += instance.OnPlatformSpawn; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { Shoot.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnShoot; Shoot.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnShoot; Shoot.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnShoot; Movement.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMovement; Movement.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMovement; Movement.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMovement; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { Shoot.started += instance.OnShoot; Shoot.performed += instance.OnShoot; Shoot.canceled += instance.OnShoot; Movement.started += instance.OnMovement; Movement.performed += instance.OnMovement; Movement.canceled += instance.OnMovement; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @Att.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnAtt; @Att.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnAtt; @Att.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnAtt; @Def.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDef; @Def.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDef; @Def.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDef; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @Att.started += instance.OnAtt; @Att.performed += instance.OnAtt; @Att.canceled += instance.OnAtt; @Def.started += instance.OnDef; @Def.performed += instance.OnDef; @Def.canceled += instance.OnDef; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @ToggleConsole.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnToggleConsole; @ToggleConsole.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnToggleConsole; @ToggleConsole.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnToggleConsole; @ToggleWorld.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnToggleWorld; @ToggleWorld.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnToggleWorld; @ToggleWorld.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnToggleWorld; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @ToggleConsole.started += instance.OnToggleConsole; @ToggleConsole.performed += instance.OnToggleConsole; @ToggleConsole.canceled += instance.OnToggleConsole; @ToggleWorld.started += instance.OnToggleWorld; @ToggleWorld.performed += instance.OnToggleWorld; @ToggleWorld.canceled += instance.OnToggleWorld; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @SelectLeft.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnSelectLeft; @SelectLeft.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnSelectLeft; @SelectLeft.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnSelectLeft; @SelectRight.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnSelectRight; @SelectRight.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnSelectRight; @SelectRight.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnSelectRight; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @SelectLeft.started += instance.OnSelectLeft; @SelectLeft.performed += instance.OnSelectLeft; @SelectLeft.canceled += instance.OnSelectLeft; @SelectRight.started += instance.OnSelectRight; @SelectRight.performed += instance.OnSelectRight; @SelectRight.canceled += instance.OnSelectRight; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @Menu.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMenu; @Menu.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMenu; @Menu.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMenu; @Ecodex.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnEcodex; @Ecodex.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnEcodex; @Ecodex.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnEcodex; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @Menu.started += instance.OnMenu; @Menu.performed += instance.OnMenu; @Menu.canceled += instance.OnMenu; @Ecodex.started += instance.OnEcodex; @Ecodex.performed += instance.OnEcodex; @Ecodex.canceled += instance.OnEcodex; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @Thrust.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnThrust; @Thrust.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnThrust; @Thrust.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnThrust; @Rotation.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnRotation; @Rotation.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnRotation; @Rotation.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnRotation; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @Thrust.started += instance.OnThrust; @Thrust.performed += instance.OnThrust; @Thrust.canceled += instance.OnThrust; @Rotation.started += instance.OnRotation; @Rotation.performed += instance.OnRotation; @Rotation.canceled += instance.OnRotation; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @ThruoghKnife.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnThruoghKnife; @ThruoghKnife.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnThruoghKnife; @ThruoghKnife.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnThruoghKnife; @ChooseKnife.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnChooseKnife; @ChooseKnife.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnChooseKnife; @ChooseKnife.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnChooseKnife; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @ThruoghKnife.started += instance.OnThruoghKnife; @ThruoghKnife.performed += instance.OnThruoghKnife; @ThruoghKnife.canceled += instance.OnThruoghKnife; @ChooseKnife.started += instance.OnChooseKnife; @ChooseKnife.performed += instance.OnChooseKnife; @ChooseKnife.canceled += instance.OnChooseKnife; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @Vertical.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnVertical; @Vertical.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnVertical; @Vertical.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnVertical; @Horizontal.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnHorizontal; @Horizontal.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnHorizontal; @Horizontal.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnHorizontal; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @Vertical.started += instance.OnVertical; @Vertical.performed += instance.OnVertical; @Vertical.canceled += instance.OnVertical; @Horizontal.started += instance.OnHorizontal; @Horizontal.performed += instance.OnHorizontal; @Horizontal.canceled += instance.OnHorizontal; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @Newaction.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnNewaction; @Newaction.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnNewaction; @Newaction.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnNewaction; @Crouch.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnCrouch; @Crouch.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnCrouch; @Crouch.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnCrouch; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @Newaction.started += instance.OnNewaction; @Newaction.performed += instance.OnNewaction; @Newaction.canceled += instance.OnNewaction; @Crouch.started += instance.OnCrouch; @Crouch.performed += instance.OnCrouch; @Crouch.canceled += instance.OnCrouch; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @HorizontalMovement.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnHorizontalMovement; @HorizontalMovement.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnHorizontalMovement; @HorizontalMovement.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnHorizontalMovement; @UpDownYaw.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnUpDownYaw; @UpDownYaw.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnUpDownYaw; @UpDownYaw.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnUpDownYaw; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @HorizontalMovement.started += instance.OnHorizontalMovement; @HorizontalMovement.performed += instance.OnHorizontalMovement; @HorizontalMovement.canceled += instance.OnHorizontalMovement; @UpDownYaw.started += instance.OnUpDownYaw; @UpDownYaw.performed += instance.OnUpDownYaw; @UpDownYaw.canceled += instance.OnUpDownYaw; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @ClickDown.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnClickDown; @ClickDown.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnClickDown; @ClickDown.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnClickDown; @ClickUp.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnClickUp; @ClickUp.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnClickUp; @ClickUp.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnClickUp; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @ClickDown.started += instance.OnClickDown; @ClickDown.performed += instance.OnClickDown; @ClickDown.canceled += instance.OnClickDown; @ClickUp.started += instance.OnClickUp; @ClickUp.performed += instance.OnClickUp; @ClickUp.canceled += instance.OnClickUp; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @Accelerate.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnAccelerate; @Accelerate.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnAccelerate; @Accelerate.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnAccelerate; @Brake.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnBrake; @Brake.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnBrake; @Brake.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnBrake; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @Accelerate.started += instance.OnAccelerate; @Accelerate.performed += instance.OnAccelerate; @Accelerate.canceled += instance.OnAccelerate; @Brake.started += instance.OnBrake; @Brake.performed += instance.OnBrake; @Brake.canceled += instance.OnBrake; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @MousePosition.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMousePosition; @MousePosition.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMousePosition; @MousePosition.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMousePosition; @Click.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnClick; @Click.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnClick; @Click.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnClick; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @MousePosition.started += instance.OnMousePosition; @MousePosition.performed += instance.OnMousePosition; @MousePosition.canceled += instance.OnMousePosition; @Click.started += instance.OnClick; @Click.performed += instance.OnClick; @Click.canceled += instance.OnClick; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { Movement.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMovement; Movement.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMovement; Movement.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMovement; PrimaryFire.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnPrimaryFire; PrimaryFire.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnPrimaryFire; PrimaryFire.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnPrimaryFire; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { Movement.started += instance.OnMovement; Movement.performed += instance.OnMovement; Movement.canceled += instance.OnMovement; PrimaryFire.started += instance.OnPrimaryFire; PrimaryFire.performed += instance.OnPrimaryFire; PrimaryFire.canceled += instance.OnPrimaryFire; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @MoveCamera.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMoveCamera; @MoveCamera.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMoveCamera; @MoveCamera.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMoveCamera; @Zoom.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnZoom; @Zoom.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnZoom; @Zoom.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnZoom; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @MoveCamera.started += instance.OnMoveCamera; @MoveCamera.performed += instance.OnMoveCamera; @MoveCamera.canceled += instance.OnMoveCamera; @Zoom.started += instance.OnZoom; @Zoom.performed += instance.OnZoom; @Zoom.canceled += instance.OnZoom; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { Move.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove; Move.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove; Move.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove; Roll.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnRoll; Roll.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnRoll; Roll.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnRoll; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { Move.started += instance.OnMove; Move.performed += instance.OnMove; Move.canceled += instance.OnMove; Roll.started += instance.OnRoll; Roll.performed += instance.OnRoll; Roll.canceled += instance.OnRoll; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @Look.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLook; @Look.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLook; @Look.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLook; @Aim.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnAim; @Aim.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnAim; @Aim.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnAim; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @Look.started += instance.OnLook; @Look.performed += instance.OnLook; @Look.canceled += instance.OnLook; @Aim.started += instance.OnAim; @Aim.performed += instance.OnAim; @Aim.canceled += instance.OnAim; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { Axis.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnAxis; Axis.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnAxis; Axis.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnAxis; Fire.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnFire; Fire.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnFire; Fire.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnFire; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { Axis.started += instance.OnAxis; Axis.performed += instance.OnAxis; Axis.canceled += instance.OnAxis; Fire.started += instance.OnFire; Fire.performed += instance.OnFire; Fire.canceled += instance.OnFire; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @WaywardVector.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnWaywardVector; @WaywardVector.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnWaywardVector; @WaywardVector.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnWaywardVector; @WaywardAction.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnWaywardAction; @WaywardAction.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnWaywardAction; @WaywardAction.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnWaywardAction; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @WaywardVector.started += instance.OnWaywardVector; @WaywardVector.performed += instance.OnWaywardVector; @WaywardVector.canceled += instance.OnWaywardVector; @WaywardAction.started += instance.OnWaywardAction; @WaywardAction.performed += instance.OnWaywardAction; @WaywardAction.canceled += instance.OnWaywardAction; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @Movement.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMovement; @Movement.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMovement; @Movement.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMovement; @Attack.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnAttack; @Attack.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnAttack; @Attack.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnAttack; } m_Wrapper.m_PlayerActionsCallbackInterface = 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; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { LeftClick.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLeftClick; LeftClick.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLeftClick; LeftClick.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLeftClick; RightClick.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnRightClick; RightClick.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnRightClick; RightClick.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnRightClick; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { LeftClick.started += instance.OnLeftClick; LeftClick.performed += instance.OnLeftClick; LeftClick.canceled += instance.OnLeftClick; RightClick.started += instance.OnRightClick; RightClick.performed += instance.OnRightClick; RightClick.canceled += instance.OnRightClick; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @Jump.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnJump; @Jump.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnJump; @Jump.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnJump; @Move.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @Jump.started += instance.OnJump; @Jump.performed += instance.OnJump; @Jump.canceled += instance.OnJump; @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @Click.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnClick; @Click.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnClick; @Click.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnClick; @WASD.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnWASD; @WASD.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnWASD; @WASD.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnWASD; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @Click.started += instance.OnClick; @Click.performed += instance.OnClick; @Click.canceled += instance.OnClick; @WASD.started += instance.OnWASD; @WASD.performed += instance.OnWASD; @WASD.canceled += instance.OnWASD; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { ButtonSouth.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnButtonSouth; ButtonSouth.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnButtonSouth; ButtonSouth.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnButtonSouth; ButtonWest.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnButtonWest; ButtonWest.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnButtonWest; ButtonWest.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnButtonWest; ButtonEast.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnButtonEast; ButtonEast.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnButtonEast; ButtonEast.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnButtonEast; LeftTrigger.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLeftTrigger; LeftTrigger.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLeftTrigger; LeftTrigger.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLeftTrigger; RightShoulder.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnRightShoulder; RightShoulder.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnRightShoulder; RightShoulder.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnRightShoulder; RightTrigger.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnRightTrigger; RightTrigger.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnRightTrigger; RightTrigger.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnRightTrigger; LeftStick.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLeftStick; LeftStick.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLeftStick; LeftStick.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLeftStick; RightStick.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnRightStick; RightStick.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnRightStick; RightStick.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnRightStick; DPad.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDPad; DPad.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDPad; DPad.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDPad; ButtonNorth.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnButtonNorth; ButtonNorth.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnButtonNorth; ButtonNorth.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnButtonNorth; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { ButtonSouth.started += instance.OnButtonSouth; ButtonSouth.performed += instance.OnButtonSouth; ButtonSouth.canceled += instance.OnButtonSouth; ButtonWest.started += instance.OnButtonWest; ButtonWest.performed += instance.OnButtonWest; ButtonWest.canceled += instance.OnButtonWest; ButtonEast.started += instance.OnButtonEast; ButtonEast.performed += instance.OnButtonEast; ButtonEast.canceled += instance.OnButtonEast; LeftTrigger.started += instance.OnLeftTrigger; LeftTrigger.performed += instance.OnLeftTrigger; LeftTrigger.canceled += instance.OnLeftTrigger; RightShoulder.started += instance.OnRightShoulder; RightShoulder.performed += instance.OnRightShoulder; RightShoulder.canceled += instance.OnRightShoulder; RightTrigger.started += instance.OnRightTrigger; RightTrigger.performed += instance.OnRightTrigger; RightTrigger.canceled += instance.OnRightTrigger; LeftStick.started += instance.OnLeftStick; LeftStick.performed += instance.OnLeftStick; LeftStick.canceled += instance.OnLeftStick; RightStick.started += instance.OnRightStick; RightStick.performed += instance.OnRightStick; RightStick.canceled += instance.OnRightStick; DPad.started += instance.OnDPad; DPad.performed += instance.OnDPad; DPad.canceled += instance.OnDPad; ButtonNorth.started += instance.OnButtonNorth; ButtonNorth.performed += instance.OnButtonNorth; ButtonNorth.canceled += instance.OnButtonNorth; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @Movement.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMovement; @Movement.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMovement; @Movement.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMovement; @Jump.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnJump; @Jump.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnJump; @Jump.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnJump; @Pause.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnPause; @Pause.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnPause; @Pause.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnPause; @PreviousSlime.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnPreviousSlime; @PreviousSlime.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnPreviousSlime; @PreviousSlime.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnPreviousSlime; @NextSlime.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnNextSlime; @NextSlime.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnNextSlime; @NextSlime.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnNextSlime; @Detonate.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDetonate; @Detonate.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDetonate; @Detonate.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDetonate; @Sticky.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnSticky; @Sticky.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnSticky; @Sticky.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnSticky; @IceBeam.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnIceBeam; @IceBeam.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnIceBeam; @IceBeam.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnIceBeam; @ReturnToCore.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnReturnToCore; @ReturnToCore.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnReturnToCore; @ReturnToCore.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnReturnToCore; @Combine.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnCombine; @Combine.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnCombine; @Combine.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnCombine; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @Movement.started += instance.OnMovement; @Movement.performed += instance.OnMovement; @Movement.canceled += instance.OnMovement; @Jump.started += instance.OnJump; @Jump.performed += instance.OnJump; @Jump.canceled += instance.OnJump; @Pause.started += instance.OnPause; @Pause.performed += instance.OnPause; @Pause.canceled += instance.OnPause; @PreviousSlime.started += instance.OnPreviousSlime; @PreviousSlime.performed += instance.OnPreviousSlime; @PreviousSlime.canceled += instance.OnPreviousSlime; @NextSlime.started += instance.OnNextSlime; @NextSlime.performed += instance.OnNextSlime; @NextSlime.canceled += instance.OnNextSlime; @Detonate.started += instance.OnDetonate; @Detonate.performed += instance.OnDetonate; @Detonate.canceled += instance.OnDetonate; @Sticky.started += instance.OnSticky; @Sticky.performed += instance.OnSticky; @Sticky.canceled += instance.OnSticky; @IceBeam.started += instance.OnIceBeam; @IceBeam.performed += instance.OnIceBeam; @IceBeam.canceled += instance.OnIceBeam; @ReturnToCore.started += instance.OnReturnToCore; @ReturnToCore.performed += instance.OnReturnToCore; @ReturnToCore.canceled += instance.OnReturnToCore; @Combine.started += instance.OnCombine; @Combine.performed += instance.OnCombine; @Combine.canceled += instance.OnCombine; } }
public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @Fire.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnFire; @Fire.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnFire; @Fire.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnFire; @Move.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMove; @Switch.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnSwitch; @Switch.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnSwitch; @Switch.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnSwitch; @Special.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnSpecial; @Special.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnSpecial; @Special.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnSpecial; @FindTarget.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnFindTarget; @FindTarget.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnFindTarget; @FindTarget.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnFindTarget; @Reload.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnReload; @Reload.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnReload; @Reload.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnReload; @Break.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnBreak; @Break.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnBreak; @Break.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnBreak; @Reset.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnReset; @Reset.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnReset; @Reset.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnReset; @Pause.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnPause; @Pause.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnPause; @Pause.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnPause; } m_Wrapper.m_PlayerActionsCallbackInterface = 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; @Switch.started += instance.OnSwitch; @Switch.performed += instance.OnSwitch; @Switch.canceled += instance.OnSwitch; @Special.started += instance.OnSpecial; @Special.performed += instance.OnSpecial; @Special.canceled += instance.OnSpecial; @FindTarget.started += instance.OnFindTarget; @FindTarget.performed += instance.OnFindTarget; @FindTarget.canceled += instance.OnFindTarget; @Reload.started += instance.OnReload; @Reload.performed += instance.OnReload; @Reload.canceled += instance.OnReload; @Break.started += instance.OnBreak; @Break.performed += instance.OnBreak; @Break.canceled += instance.OnBreak; @Reset.started += instance.OnReset; @Reset.performed += instance.OnReset; @Reset.canceled += instance.OnReset; @Pause.started += instance.OnPause; @Pause.performed += instance.OnPause; @Pause.canceled += instance.OnPause; } }