private void OnDisable()
    {
        inputReader.CameraMoveEvent -= OnCameraMove;
        inputReader.EnableMouseControlCameraEvent  -= OnEnableMouseControlCamera;
        inputReader.DisableMouseControlCameraEvent -= OnDisableMouseControlCamera;

        _protagonistTransformAnchor.OnAnchorProvided -= SetupProtagonistVirtualCamera;
        _camShakeEvent.OnEventRaised -= impulseSource.GenerateImpulse;

        _cameraTransformAnchor.Unset();
    }
Beispiel #2
0
    private void OnDisable()
    {
        _onSceneReady.OnEventRaised -= SpawnPlayer;

        _playerTransformAnchor.Unset();
    }