SliderScript.cs 320 B

12345678910111213141516
  1. using UnityEngine;
  2. using UnityEngine.UI;
  3. public class SliderScript : MonoBehaviour
  4. {
  5. Sharpen _sharpen;
  6. void Update()
  7. {
  8. _sharpen=GameObject.FindGameObjectWithTag("MainCamera").GetComponent<Sharpen>();
  9. }
  10. public void MoveSlider(Slider a)
  11. {
  12. _sharpen.Sharpness = a.value;
  13. }
  14. }