void Update() { if (Input.GetKeyDown(KeyCode.J)) { BeautifySettings.settings.bloomIntensity.value += 0.1f; } if (Input.GetKeyDown(KeyCode.T) || Input.GetMouseButtonDown(0)) { BeautifySettings.settings.disabled.value = !BeautifySettings.settings.disabled.value; UpdateText(); } if (Input.GetKeyDown(KeyCode.B)) { BeautifySettings.Blink(0.2f); } if (Input.GetKeyDown(KeyCode.C)) { BeautifySettings.settings.compareMode.value = !BeautifySettings.settings.compareMode.value; } if (Input.GetKeyDown(KeyCode.N)) { BeautifySettings.settings.nightVision.Override(!BeautifySettings.settings.nightVision.value); } }
private void Awake() { beautifySettings = FindObjectOfType <BeautifySettings>(); if (beautifySettings != null) { beautifySettings.depthOfFieldTarget = gameObject.transform; } }
private void Awake() { controls = new Controls(); beautifySettings = FindObjectOfType <BeautifySettings>().GetComponent <BeautifySettings>(); // SetupControlEvents(); }