public void SetCallbacks(IGameplay1Actions instance) { if (m_Wrapper.m_Gameplay1ActionsCallbackInterface != null) { @aim.started -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnAim; @aim.performed -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnAim; @aim.canceled -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnAim; @walk.started -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnWalk; @walk.performed -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnWalk; @walk.canceled -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnWalk; @jump.started -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnJump; @jump.performed -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnJump; @jump.canceled -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnJump; @fastfalling.started -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnFastfalling; @fastfalling.performed -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnFastfalling; @fastfalling.canceled -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnFastfalling; @shoot.started -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnShoot; @shoot.performed -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnShoot; @shoot.canceled -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnShoot; @passthrough.started -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnPassthrough; @passthrough.performed -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnPassthrough; @passthrough.canceled -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnPassthrough; @reload.started -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnReload; @reload.performed -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnReload; @reload.canceled -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnReload; @crouch.started -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnCrouch; @crouch.performed -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnCrouch; @crouch.canceled -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnCrouch; } m_Wrapper.m_Gameplay1ActionsCallbackInterface = instance; if (instance != null) { @aim.started += instance.OnAim; @aim.performed += instance.OnAim; @aim.canceled += instance.OnAim; @walk.started += instance.OnWalk; @walk.performed += instance.OnWalk; @walk.canceled += instance.OnWalk; @jump.started += instance.OnJump; @jump.performed += instance.OnJump; @jump.canceled += instance.OnJump; @fastfalling.started += instance.OnFastfalling; @fastfalling.performed += instance.OnFastfalling; @fastfalling.canceled += instance.OnFastfalling; @shoot.started += instance.OnShoot; @shoot.performed += instance.OnShoot; @shoot.canceled += instance.OnShoot; @passthrough.started += instance.OnPassthrough; @passthrough.performed += instance.OnPassthrough; @passthrough.canceled += instance.OnPassthrough; @reload.started += instance.OnReload; @reload.performed += instance.OnReload; @reload.canceled += instance.OnReload; @crouch.started += instance.OnCrouch; @crouch.performed += instance.OnCrouch; @crouch.canceled += instance.OnCrouch; } }
public void SetCallbacks(IGameplay1Actions instance) { if (m_Wrapper.m_Gameplay1ActionsCallbackInterface != null) { @Jump.started -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnJump; @Jump.performed -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnJump; @Jump.canceled -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnJump; @Move.started -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnMove; @Move2.started -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnMove2; @Move2.performed -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnMove2; @Move2.canceled -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnMove2; @Repair.started -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnRepair; @Repair.performed -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnRepair; @Repair.canceled -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnRepair; @Shoot.started -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnShoot; @Shoot.performed -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnShoot; @Shoot.canceled -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnShoot; @Skill.started -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnSkill; @Skill.performed -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnSkill; @Skill.canceled -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnSkill; @Down.started -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnDown; @Down.performed -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnDown; @Down.canceled -= m_Wrapper.m_Gameplay1ActionsCallbackInterface.OnDown; } m_Wrapper.m_Gameplay1ActionsCallbackInterface = 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; @Move2.started += instance.OnMove2; @Move2.performed += instance.OnMove2; @Move2.canceled += instance.OnMove2; @Repair.started += instance.OnRepair; @Repair.performed += instance.OnRepair; @Repair.canceled += instance.OnRepair; @Shoot.started += instance.OnShoot; @Shoot.performed += instance.OnShoot; @Shoot.canceled += instance.OnShoot; @Skill.started += instance.OnSkill; @Skill.performed += instance.OnSkill; @Skill.canceled += instance.OnSkill; @Down.started += instance.OnDown; @Down.performed += instance.OnDown; @Down.canceled += instance.OnDown; } }