Пример #1
0
 void Update()
 {
     GetComponent <Light>().intensity = ss.GetValue();
 }
Пример #2
0
 void Update()
 {
     cameraRig.localScale = Vector3.one * Mathf.Clamp(ss.GetValue(), 0.1f, 1f);
 }