private void Awake()
 {
     Instance = this;
     speed    = GetComponent <Slider>();
     speed.onValueChanged.AddListener((value) => {
         Value.text = (speed.value / 10).ToString("f1");
     });
 }
Beispiel #2
0
 private void Awake()
 {
     Instance = this;
     speed    = GetComponent <Slider>();
 }