title: 'Slider' does not contain a definition for 'value'
body: <p>I want to make some project when I slide the UI slider will appear some text. But after I finish my coding, the error appears.</p>
  
  <blockquote>
    <p>error CS1061: 'Slider' does not contain a definition for 'value' and no accessible extension method 'value' accepting a first argument of type 'Slider' could be found (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  
  <p>But if I put in a new project, the error did not come out. When I import asset the error comes again.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>public class TextControl : MonoBehaviour {
  
  public Slider Food;
  public Slider Calories;
  public Text States;
  public Text Question;
  
  public void Update()
  {
      wordShown();
  }
  public void wordShown()
  {
      if (Food.value &gt;= 0.5f) 
      {
          if (Calories.value &gt;= 0.5f) 
          {
              States.text = "INACTIVE, UNHEALTHY";
              Question.text = "What changes can make him be active and healthy?";
          } 
          else if (Calories.value &lt; 0.5f) 
          {
              States.text = "ACTIVE, HEALTHY";
              Question.text = "What should he do to maintaian his fitness?";
          }
      } 
      else if (Food.value &lt; 0.5f) 
      {
          if (Calories.value &gt;= 0.5f) 
          {
              States.text =  "INACTIVE,UNHEALTHY";
              Question.text = "What classes of food should have consume by this person?";
          } 
          else if (Calories.value &lt; 0.5f) 
          {
              States.text =  "ACTIVE, HEALTHY";
              Question.text = "High calorie associated with what type of food?";
          }
      }
  }
  
  }
  </code></pre>