public void SetCallbacks(IPlayer2Actions instance) { if (m_Wrapper.m_Player2ActionsCallbackInterface != null) { @Horizontal.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnHorizontal; @Horizontal.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnHorizontal; @Horizontal.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnHorizontal; @Vertical.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnVertical; @Vertical.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnVertical; @Vertical.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnVertical; @Power.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnPower; @Power.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnPower; @Power.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnPower; @ReleasePower.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnReleasePower; @ReleasePower.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnReleasePower; @ReleasePower.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnReleasePower; } m_Wrapper.m_Player2ActionsCallbackInterface = 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; @Power.started += instance.OnPower; @Power.performed += instance.OnPower; @Power.canceled += instance.OnPower; @ReleasePower.started += instance.OnReleasePower; @ReleasePower.performed += instance.OnReleasePower; @ReleasePower.canceled += instance.OnReleasePower; } }
public void SetCallbacks(IPlayer2Actions instance) { if (m_Wrapper.m_Player2ActionsCallbackInterface != null) { @Move.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Interact.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnInteract; @Interact.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnInteract; @Interact.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnInteract; @Sprint.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnSprint; @Sprint.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnSprint; @Sprint.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnSprint; } m_Wrapper.m_Player2ActionsCallbackInterface = 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; @Sprint.started += instance.OnSprint; @Sprint.performed += instance.OnSprint; @Sprint.canceled += instance.OnSprint; } }
public void SetCallbacks(IPlayer2Actions instance) { if (m_Wrapper.m_Player2ActionsCallbackInterface != null) { @Move.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Jump.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnJump; @Jump.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnJump; @Jump.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnJump; @Hit.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnHit; @Hit.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnHit; @Hit.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnHit; } m_Wrapper.m_Player2ActionsCallbackInterface = instance; if (instance != null) { @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; @Jump.started += instance.OnJump; @Jump.performed += instance.OnJump; @Jump.canceled += instance.OnJump; @Hit.started += instance.OnHit; @Hit.performed += instance.OnHit; @Hit.canceled += instance.OnHit; } }
public void SetCallbacks(IPlayer2Actions instance) { if (m_Wrapper.m_Player2ActionsCallbackInterface != null) { @Jump.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnJump; @Jump.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnJump; @Jump.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnJump; @Move.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Slash.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnSlash; @Slash.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnSlash; @Slash.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnSlash; @Debug.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnDebug; @Debug.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnDebug; @Debug.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnDebug; } m_Wrapper.m_Player2ActionsCallbackInterface = 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; @Slash.started += instance.OnSlash; @Slash.performed += instance.OnSlash; @Slash.canceled += instance.OnSlash; @Debug.started += instance.OnDebug; @Debug.performed += instance.OnDebug; @Debug.canceled += instance.OnDebug; } }
public void SetCallbacks(IPlayer2Actions instance) { if (m_Wrapper.m_Player2ActionsCallbackInterface != null) { @Move.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Shoot.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnShoot; @Shoot.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnShoot; @Shoot.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnShoot; @Reload.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnReload; @Reload.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnReload; @Reload.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnReload; } m_Wrapper.m_Player2ActionsCallbackInterface = instance; if (instance != null) { @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; @Shoot.started += instance.OnShoot; @Shoot.performed += instance.OnShoot; @Shoot.canceled += instance.OnShoot; @Reload.started += instance.OnReload; @Reload.performed += instance.OnReload; @Reload.canceled += instance.OnReload; } }
public void SetCallbacks(IPlayer2Actions instance) { if (m_Wrapper.m_Player2ActionsCallbackInterface != null) { @HorizontalAxis.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnHorizontalAxis; @HorizontalAxis.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnHorizontalAxis; @HorizontalAxis.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnHorizontalAxis; @VerticalAxis.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnVerticalAxis; @VerticalAxis.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnVerticalAxis; @VerticalAxis.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnVerticalAxis; @Up_Fire.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnUp_Fire; @Up_Fire.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnUp_Fire; @Up_Fire.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnUp_Fire; @Eject.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnEject; @Eject.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnEject; @Eject.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnEject; } m_Wrapper.m_Player2ActionsCallbackInterface = instance; if (instance != null) { @HorizontalAxis.started += instance.OnHorizontalAxis; @HorizontalAxis.performed += instance.OnHorizontalAxis; @HorizontalAxis.canceled += instance.OnHorizontalAxis; @VerticalAxis.started += instance.OnVerticalAxis; @VerticalAxis.performed += instance.OnVerticalAxis; @VerticalAxis.canceled += instance.OnVerticalAxis; @Up_Fire.started += instance.OnUp_Fire; @Up_Fire.performed += instance.OnUp_Fire; @Up_Fire.canceled += instance.OnUp_Fire; @Eject.started += instance.OnEject; @Eject.performed += instance.OnEject; @Eject.canceled += instance.OnEject; } }
public void SetCallbacks(IPlayer2Actions instance) { if (m_Wrapper.m_Player2ActionsCallbackInterface != null) { @Move.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Rotate.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnRotate; @Rotate.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnRotate; @Rotate.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnRotate; @RestartScene.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnRestartScene; @RestartScene.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnRestartScene; @RestartScene.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnRestartScene; @BackwardsForce.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnBackwardsForce; @BackwardsForce.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnBackwardsForce; @BackwardsForce.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnBackwardsForce; } m_Wrapper.m_Player2ActionsCallbackInterface = instance; if (instance != null) { @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; @Rotate.started += instance.OnRotate; @Rotate.performed += instance.OnRotate; @Rotate.canceled += instance.OnRotate; @RestartScene.started += instance.OnRestartScene; @RestartScene.performed += instance.OnRestartScene; @RestartScene.canceled += instance.OnRestartScene; @BackwardsForce.started += instance.OnBackwardsForce; @BackwardsForce.performed += instance.OnBackwardsForce; @BackwardsForce.canceled += instance.OnBackwardsForce; } }
public void SetCallbacks(IPlayer2Actions instance) { if (m_Wrapper.m_Player2ActionsCallbackInterface != null) { @MoveV.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMoveV; @MoveV.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMoveV; @MoveV.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMoveV; @MoveH.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMoveH; @MoveH.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMoveH; @MoveH.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMoveH; @Attack.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnAttack; @Attack.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnAttack; @Attack.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnAttack; @Defence.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnDefence; @Defence.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnDefence; @Defence.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnDefence; } m_Wrapper.m_Player2ActionsCallbackInterface = instance; if (instance != null) { @MoveV.started += instance.OnMoveV; @MoveV.performed += instance.OnMoveV; @MoveV.canceled += instance.OnMoveV; @MoveH.started += instance.OnMoveH; @MoveH.performed += instance.OnMoveH; @MoveH.canceled += instance.OnMoveH; @Attack.started += instance.OnAttack; @Attack.performed += instance.OnAttack; @Attack.canceled += instance.OnAttack; @Defence.started += instance.OnDefence; @Defence.performed += instance.OnDefence; @Defence.canceled += instance.OnDefence; } }
public void SetCallbacks(IPlayer2Actions instance) { if (m_Wrapper.m_Player2ActionsCallbackInterface != null) { @Move.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Interact.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnInteract; @Interact.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnInteract; @Interact.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnInteract; @Select.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnSelect; @Select.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnSelect; @Select.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnSelect; @Menu.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMenu; @Menu.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMenu; @Menu.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMenu; @Notify.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnNotify; @Notify.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnNotify; @Notify.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnNotify; @Emotes.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnEmotes; @Emotes.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnEmotes; @Emotes.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnEmotes; } m_Wrapper.m_Player2ActionsCallbackInterface = 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; @Select.started += instance.OnSelect; @Select.performed += instance.OnSelect; @Select.canceled += instance.OnSelect; @Menu.started += instance.OnMenu; @Menu.performed += instance.OnMenu; @Menu.canceled += instance.OnMenu; @Notify.started += instance.OnNotify; @Notify.performed += instance.OnNotify; @Notify.canceled += instance.OnNotify; @Emotes.started += instance.OnEmotes; @Emotes.performed += instance.OnEmotes; @Emotes.canceled += instance.OnEmotes; } }
public void SetCallbacks(IPlayer2Actions instance) { if (m_Wrapper.m_Player2ActionsCallbackInterface != null) { @Move.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Interact.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnInteract; @Interact.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnInteract; @Interact.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnInteract; @Fire.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnFire; @Fire.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnFire; @Fire.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnFire; @ChooseTools.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnChooseTools; @ChooseTools.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnChooseTools; @ChooseTools.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnChooseTools; @Jump.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnJump; @Jump.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnJump; @Jump.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnJump; } m_Wrapper.m_Player2ActionsCallbackInterface = 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; @Fire.started += instance.OnFire; @Fire.performed += instance.OnFire; @Fire.canceled += instance.OnFire; @ChooseTools.started += instance.OnChooseTools; @ChooseTools.performed += instance.OnChooseTools; @ChooseTools.canceled += instance.OnChooseTools; @Jump.started += instance.OnJump; @Jump.performed += instance.OnJump; @Jump.canceled += instance.OnJump; } }
public void SetCallbacks(IPlayer2Actions instance) { if (m_Wrapper.m_Player2ActionsCallbackInterface != null) { @Move.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Jump.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnJump; @Jump.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnJump; @Jump.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnJump; @Crouch.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnCrouch; @Crouch.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnCrouch; @Crouch.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnCrouch; @Kick.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnKick; @Kick.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnKick; @Kick.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnKick; @Attack.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnAttack; @Attack.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnAttack; @Attack.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnAttack; } m_Wrapper.m_Player2ActionsCallbackInterface = instance; if (instance != null) { @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; @Jump.started += instance.OnJump; @Jump.performed += instance.OnJump; @Jump.canceled += instance.OnJump; @Crouch.started += instance.OnCrouch; @Crouch.performed += instance.OnCrouch; @Crouch.canceled += instance.OnCrouch; @Kick.started += instance.OnKick; @Kick.performed += instance.OnKick; @Kick.canceled += instance.OnKick; @Attack.started += instance.OnAttack; @Attack.performed += instance.OnAttack; @Attack.canceled += instance.OnAttack; } }
public void SetCallbacks(IPlayer2Actions instance) { if (m_Wrapper.m_Player2ActionsCallbackInterface != null) { @Move.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Attach.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnAttach; @Attach.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnAttach; @Attach.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnAttach; @Chop.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnChop; @Chop.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnChop; @Chop.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnChop; @Charge.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnCharge; @Charge.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnCharge; @Charge.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnCharge; @Rotate.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnRotate; @Rotate.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnRotate; @Rotate.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnRotate; } m_Wrapper.m_Player2ActionsCallbackInterface = instance; if (instance != null) { @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; @Attach.started += instance.OnAttach; @Attach.performed += instance.OnAttach; @Attach.canceled += instance.OnAttach; @Chop.started += instance.OnChop; @Chop.performed += instance.OnChop; @Chop.canceled += instance.OnChop; @Charge.started += instance.OnCharge; @Charge.performed += instance.OnCharge; @Charge.canceled += instance.OnCharge; @Rotate.started += instance.OnRotate; @Rotate.performed += instance.OnRotate; @Rotate.canceled += instance.OnRotate; } }
public void SetCallbacks(IPlayer2Actions instance) { if (m_Wrapper.m_Player2ActionsCallbackInterface != null) { @ChargePress.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnChargePress; @ChargePress.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnChargePress; @ChargePress.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnChargePress; @ChargeRelease.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnChargeRelease; @ChargeRelease.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnChargeRelease; @ChargeRelease.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnChargeRelease; @Turning.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnTurning; @Turning.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnTurning; @Turning.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnTurning; @HornPress.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnHornPress; @HornPress.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnHornPress; @HornPress.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnHornPress; @HornRelease.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnHornRelease; @HornRelease.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnHornRelease; @HornRelease.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnHornRelease; } m_Wrapper.m_Player2ActionsCallbackInterface = instance; if (instance != null) { @ChargePress.started += instance.OnChargePress; @ChargePress.performed += instance.OnChargePress; @ChargePress.canceled += instance.OnChargePress; @ChargeRelease.started += instance.OnChargeRelease; @ChargeRelease.performed += instance.OnChargeRelease; @ChargeRelease.canceled += instance.OnChargeRelease; @Turning.started += instance.OnTurning; @Turning.performed += instance.OnTurning; @Turning.canceled += instance.OnTurning; @HornPress.started += instance.OnHornPress; @HornPress.performed += instance.OnHornPress; @HornPress.canceled += instance.OnHornPress; @HornRelease.started += instance.OnHornRelease; @HornRelease.performed += instance.OnHornRelease; @HornRelease.canceled += instance.OnHornRelease; } }
public void SetCallbacks(IPlayer2Actions instance) { if (m_Wrapper.m_Player2ActionsCallbackInterface != null) { @Move.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMove; @Ability1.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnAbility1; @Ability1.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnAbility1; @Ability1.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnAbility1; @Ability2.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnAbility2; @Ability2.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnAbility2; @Ability2.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnAbility2; @Ability3.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnAbility3; @Ability3.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnAbility3; @Ability3.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnAbility3; @Ability4.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnAbility4; @Ability4.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnAbility4; @Ability4.canceled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnAbility4; } m_Wrapper.m_Player2ActionsCallbackInterface = instance; if (instance != null) { @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; @Ability1.started += instance.OnAbility1; @Ability1.performed += instance.OnAbility1; @Ability1.canceled += instance.OnAbility1; @Ability2.started += instance.OnAbility2; @Ability2.performed += instance.OnAbility2; @Ability2.canceled += instance.OnAbility2; @Ability3.started += instance.OnAbility3; @Ability3.performed += instance.OnAbility3; @Ability3.canceled += instance.OnAbility3; @Ability4.started += instance.OnAbility4; @Ability4.performed += instance.OnAbility4; @Ability4.canceled += instance.OnAbility4; } }
public void SetCallbacks(IPlayer2Actions instance) { if (m_Wrapper.m_Player2ActionsCallbackInterface != null) { Movement.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMovement; Movement.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMovement; Movement.cancelled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnMovement; Punches.started -= m_Wrapper.m_Player2ActionsCallbackInterface.OnPunches; Punches.performed -= m_Wrapper.m_Player2ActionsCallbackInterface.OnPunches; Punches.cancelled -= m_Wrapper.m_Player2ActionsCallbackInterface.OnPunches; } m_Wrapper.m_Player2ActionsCallbackInterface = instance; if (instance != null) { Movement.started += instance.OnMovement; Movement.performed += instance.OnMovement; Movement.cancelled += instance.OnMovement; Punches.started += instance.OnPunches; Punches.performed += instance.OnPunches; Punches.cancelled += instance.OnPunches; } }