public void SetCallbacks(IPCActions instance) { if (m_Wrapper.m_PCActionsCallbackInterface != null) { @Crouch.started -= m_Wrapper.m_PCActionsCallbackInterface.OnCrouch; @Crouch.performed -= m_Wrapper.m_PCActionsCallbackInterface.OnCrouch; @Crouch.canceled -= m_Wrapper.m_PCActionsCallbackInterface.OnCrouch; @Jump.started -= m_Wrapper.m_PCActionsCallbackInterface.OnJump; @Jump.performed -= m_Wrapper.m_PCActionsCallbackInterface.OnJump; @Jump.canceled -= m_Wrapper.m_PCActionsCallbackInterface.OnJump; @Respawn.started -= m_Wrapper.m_PCActionsCallbackInterface.OnRespawn; @Respawn.performed -= m_Wrapper.m_PCActionsCallbackInterface.OnRespawn; @Respawn.canceled -= m_Wrapper.m_PCActionsCallbackInterface.OnRespawn; @Jet.started -= m_Wrapper.m_PCActionsCallbackInterface.OnJet; @Jet.performed -= m_Wrapper.m_PCActionsCallbackInterface.OnJet; @Jet.canceled -= m_Wrapper.m_PCActionsCallbackInterface.OnJet; } m_Wrapper.m_PCActionsCallbackInterface = instance; if (instance != null) { @Crouch.started += instance.OnCrouch; @Crouch.performed += instance.OnCrouch; @Crouch.canceled += instance.OnCrouch; @Jump.started += instance.OnJump; @Jump.performed += instance.OnJump; @Jump.canceled += instance.OnJump; @Respawn.started += instance.OnRespawn; @Respawn.performed += instance.OnRespawn; @Respawn.canceled += instance.OnRespawn; @Jet.started += instance.OnJet; @Jet.performed += instance.OnJet; @Jet.canceled += instance.OnJet; } }
public void SetCallbacks(IPCActions instance) { if (m_Wrapper.m_PCActionsCallbackInterface != null) { @Shoot.started -= m_Wrapper.m_PCActionsCallbackInterface.OnShoot; @Shoot.performed -= m_Wrapper.m_PCActionsCallbackInterface.OnShoot; @Shoot.canceled -= m_Wrapper.m_PCActionsCallbackInterface.OnShoot; } m_Wrapper.m_PCActionsCallbackInterface = instance; if (instance != null) { @Shoot.started += instance.OnShoot; @Shoot.performed += instance.OnShoot; @Shoot.canceled += instance.OnShoot; } }
public void SetCallbacks(IPCActions instance) { if (m_Wrapper.m_PCActionsCallbackInterface != null) { @Move.started -= m_Wrapper.m_PCActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_PCActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_PCActionsCallbackInterface.OnMove; @Look.started -= m_Wrapper.m_PCActionsCallbackInterface.OnLook; @Look.performed -= m_Wrapper.m_PCActionsCallbackInterface.OnLook; @Look.canceled -= m_Wrapper.m_PCActionsCallbackInterface.OnLook; @Jump.started -= m_Wrapper.m_PCActionsCallbackInterface.OnJump; @Jump.performed -= m_Wrapper.m_PCActionsCallbackInterface.OnJump; @Jump.canceled -= m_Wrapper.m_PCActionsCallbackInterface.OnJump; @QuickSwitch.started -= m_Wrapper.m_PCActionsCallbackInterface.OnQuickSwitch; @QuickSwitch.performed -= m_Wrapper.m_PCActionsCallbackInterface.OnQuickSwitch; @QuickSwitch.canceled -= m_Wrapper.m_PCActionsCallbackInterface.OnQuickSwitch; @Aim.started -= m_Wrapper.m_PCActionsCallbackInterface.OnAim; @Aim.performed -= m_Wrapper.m_PCActionsCallbackInterface.OnAim; @Aim.canceled -= m_Wrapper.m_PCActionsCallbackInterface.OnAim; @Sprint.started -= m_Wrapper.m_PCActionsCallbackInterface.OnSprint; @Sprint.performed -= m_Wrapper.m_PCActionsCallbackInterface.OnSprint; @Sprint.canceled -= m_Wrapper.m_PCActionsCallbackInterface.OnSprint; @Crouch.started -= m_Wrapper.m_PCActionsCallbackInterface.OnCrouch; @Crouch.performed -= m_Wrapper.m_PCActionsCallbackInterface.OnCrouch; @Crouch.canceled -= m_Wrapper.m_PCActionsCallbackInterface.OnCrouch; @Fire.started -= m_Wrapper.m_PCActionsCallbackInterface.OnFire; @Fire.performed -= m_Wrapper.m_PCActionsCallbackInterface.OnFire; @Fire.canceled -= m_Wrapper.m_PCActionsCallbackInterface.OnFire; @Pause.started -= m_Wrapper.m_PCActionsCallbackInterface.OnPause; @Pause.performed -= m_Wrapper.m_PCActionsCallbackInterface.OnPause; @Pause.canceled -= m_Wrapper.m_PCActionsCallbackInterface.OnPause; } m_Wrapper.m_PCActionsCallbackInterface = 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; @Jump.started += instance.OnJump; @Jump.performed += instance.OnJump; @Jump.canceled += instance.OnJump; @QuickSwitch.started += instance.OnQuickSwitch; @QuickSwitch.performed += instance.OnQuickSwitch; @QuickSwitch.canceled += instance.OnQuickSwitch; @Aim.started += instance.OnAim; @Aim.performed += instance.OnAim; @Aim.canceled += instance.OnAim; @Sprint.started += instance.OnSprint; @Sprint.performed += instance.OnSprint; @Sprint.canceled += instance.OnSprint; @Crouch.started += instance.OnCrouch; @Crouch.performed += instance.OnCrouch; @Crouch.canceled += instance.OnCrouch; @Fire.started += instance.OnFire; @Fire.performed += instance.OnFire; @Fire.canceled += instance.OnFire; @Pause.started += instance.OnPause; @Pause.performed += instance.OnPause; @Pause.canceled += instance.OnPause; } }