
Unity
0
Вклад в тег
private PostProcessVolume postProcess;
private Vignette vignette;
private void Awake()
{
postProcess = transform.GetChild(1).GetComponent<PostProcessVolume>();
postProcess.profile.TryGetSettings(out vignette);
}
private void FixedUpdate
{
if (inDamage)
{
health--;
vignette.intensity.value += 0.02f;
}
}