title: How to rotate object smoothly with slider in unity
body: <p>i am using a slider to rotate my object around its center and its working fine but my object moving so fast even i add speed,the slider value is between 0 and 1,Slider min value is 0 and max 1 and speed is 1, i want to rotate my object smoothly how i can do that please help me thanks
  here's my code:</p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  using UnityEngine.UI;
  public class RotateObject : MonoBehaviour {
  public float speed =1f;
  public GameObject ObjectToRotate;
  
  public void RotateMyObject()
      {
      float sliderValue = GetComponent&lt;Slider&gt;().value;
      ObjectToRotate.transform.Rotate(sliderValue*speed*Time.deltaTime,0,90);
      }}
  </code></pre>