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