title: Unity UI Slider to change UI Text
body: <p>Ok Im using unity 4.6 and have a UI slider visible to the player. Beside the slider I have a UI Text which is showing a String of 500. The Slider head is at the right hand side (500) and can be slid left towards what I want to be 0.
  I have the following code in place but when i slide the slider the Text value starts at 500 and automatically changes to 0.99 and moves the whole way down to 0 on the left hand side. If i was to slide it back up to the right hand side it has a value of 1. </p>
  
  <pre><code>public class SliderUITextUpdate : MonoBehaviour {
  
  string sliderTextString = "500";
  public Text sliderText;
  
  public void textUpdate(float textUpdateNumber)
  {
      sliderTextString = textUpdateNumber.ToString ();
      sliderText.text = sliderTextString;
  } 
  }
  </code></pre>
  
  <p>This script is attached to a Manager object (just an empty gameobject) and then the text game object is applied in the inspector.
  On the slider object I am using the OnValueChanged() ability in the inspector. To which I have attached the Manager gameobject and set it to use SliderUITexture.textUpdate</p>
  
  <p>Any help would be great thanks !</p>