title: Make camera follow that can fly around a sphere at a constant height and speed
body: <p>I need to make a script that can make my maincamera fly around a sphere at a constant height and speed. I need to write it in c# and I'm kinda new to that, so I need some help.</p>
  
  <p>So far I have just wrote a script that orbits around the object, but I want to control the camera with WASD.</p>
  
  <p>This is my orbit-script so far</p>
  
  <pre><code>public class CameraOrbit : MonoBehaviour
  {
      public GameObject target = null;  
      public bool orbitY = false;
  
      void Start () 
      {
      }
  
      void Update () 
      {
          if (target != null) 
          {
              transform.LookAt(target.transform);
              if(orbitY)
              {
                  transform.RotateAround(target.transform.position, Vector3.up, Time.deltaTime * 10);
              }
          }
      }
  }
  </code></pre>