public void Slide3( ) { S3.GetComponentsInChildren <Text>( ).FirstOrDefault(i => i.name == "Value").text = ((int)S3.value).ToString( ); HighwayCarController.MaxSpeed = S3.value; }