Exemplo n.º 1
0
    private void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
        }
        //init
        if (cameraShake.camera)
        {
            mainCamera = cameraShake.camera;
        }
        else
        {
            mainCamera = GetComponentInChildren <CinemachineVirtualCamera>();
        }
        noise = mainCamera.GetCinemachineComponent <CinemachineBasicMultiChannelPerlin>();

        radialBlurIsOpen   = false;
        motionVectorIsOpen = false;

        PPP = GetComponent <PostProcessVolume>().sharedProfile;
        motionBlurSetting = PPP.GetSetting <MotionBlur>();
        RadialBlurSetting = PPP.GetSetting <RadialBlur>();
        HitEffectSetting  = PPP.GetSetting <Vignette>();
    }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     instance = CameraEffectSystem.Instance;
 }