public void SetCallbacks(IShooterActions instance) { if (m_Wrapper.m_ShooterActionsCallbackInterface != null) { @Fire.started -= m_Wrapper.m_ShooterActionsCallbackInterface.OnFire; @Fire.performed -= m_Wrapper.m_ShooterActionsCallbackInterface.OnFire; @Fire.canceled -= m_Wrapper.m_ShooterActionsCallbackInterface.OnFire; @Move.started -= m_Wrapper.m_ShooterActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_ShooterActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_ShooterActionsCallbackInterface.OnMove; @Aim.started -= m_Wrapper.m_ShooterActionsCallbackInterface.OnAim; @Aim.performed -= m_Wrapper.m_ShooterActionsCallbackInterface.OnAim; @Aim.canceled -= m_Wrapper.m_ShooterActionsCallbackInterface.OnAim; @AllowFire.started -= m_Wrapper.m_ShooterActionsCallbackInterface.OnAllowFire; @AllowFire.performed -= m_Wrapper.m_ShooterActionsCallbackInterface.OnAllowFire; @AllowFire.canceled -= m_Wrapper.m_ShooterActionsCallbackInterface.OnAllowFire; @Jump.started -= m_Wrapper.m_ShooterActionsCallbackInterface.OnJump; @Jump.performed -= m_Wrapper.m_ShooterActionsCallbackInterface.OnJump; @Jump.canceled -= m_Wrapper.m_ShooterActionsCallbackInterface.OnJump; @Boost.started -= m_Wrapper.m_ShooterActionsCallbackInterface.OnBoost; @Boost.performed -= m_Wrapper.m_ShooterActionsCallbackInterface.OnBoost; @Boost.canceled -= m_Wrapper.m_ShooterActionsCallbackInterface.OnBoost; } m_Wrapper.m_ShooterActionsCallbackInterface = 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; @Aim.started += instance.OnAim; @Aim.performed += instance.OnAim; @Aim.canceled += instance.OnAim; @AllowFire.started += instance.OnAllowFire; @AllowFire.performed += instance.OnAllowFire; @AllowFire.canceled += instance.OnAllowFire; @Jump.started += instance.OnJump; @Jump.performed += instance.OnJump; @Jump.canceled += instance.OnJump; @Boost.started += instance.OnBoost; @Boost.performed += instance.OnBoost; @Boost.canceled += instance.OnBoost; } }
public void SetCallbacks(IShooterActions instance) { if (m_Wrapper.m_ShooterActionsCallbackInterface != null) { @Move.started -= m_Wrapper.m_ShooterActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_ShooterActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_ShooterActionsCallbackInterface.OnMove; @Shoot.started -= m_Wrapper.m_ShooterActionsCallbackInterface.OnShoot; @Shoot.performed -= m_Wrapper.m_ShooterActionsCallbackInterface.OnShoot; @Shoot.canceled -= m_Wrapper.m_ShooterActionsCallbackInterface.OnShoot; } m_Wrapper.m_ShooterActionsCallbackInterface = 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; } }