예제 #1
0
        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);
            }
        }
예제 #2
0
 private void Awake()
 {
     beautifySettings = FindObjectOfType <BeautifySettings>();
     if (beautifySettings != null)
     {
         beautifySettings.depthOfFieldTarget = gameObject.transform;
     }
 }
예제 #3
0
 private void Awake()
 {
     controls         = new Controls();
     beautifySettings = FindObjectOfType <BeautifySettings>().GetComponent <BeautifySettings>();
     // SetupControlEvents();
 }