using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EffectsCam : MonoBehaviour {
public PostProcessVolume PPV;
public bool SCREAM;
public float IF;
private void Update()
{
if (SCREAM == true)
{
IF += 0.1f;
PPV.vignette.settings.intensity = IF; //IF = 0.1f
}
if (Input.GetKeyDown(KeyCode.S))
SCREAM = true;
else SCREAM = false;
}
}
Выдаёт ошибку на выделенной цветом строчке. Хочу, чтобы значения менялось из скрипта.