示例#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();
 }