// Update is called once per frame
    void Update()
    {
        countdown.text = "Launching";
        if (!audScript.audioSource.isPlaying)
        {
            takingOff = true;
            if (!called)
            {
                called = true;
                audScript.PlayClip(clips[1]);
            }
        }

        if (takingOff)
        {
            lunarMod.transform.position += Vector3.up;
            countdown.text = "Altitude: " + Mathf.Round(lunarMod.transform.position.y);
            //if(lunarMod.transform.rotation.x>270)
            lunarMod.transform.Rotate(-11.5f * Time.deltaTime, 0, 0);
            child1.localPosition = new Vector3(-child1.transform.localPosition.x, child1.transform.localPosition.y, child1.transform.localPosition.z);
            child2.localPosition = child1.localPosition;
        }

        if (lunarMod.transform.position.y > 100)
        {
            SceneManager.LoadScene("MoonSelect");
        }
    }
 // Use this for initialization
 void Start()
 {
     audScript = lunarMod.GetComponent <AudioScript>();
     audScript.PlayClip(clips[0]);
 }
    public void DisplayInfo()
    {
        if (objType != objectText.text)
        {
            return;
        }

        if (objectText.text[0] == 'L')
        {
            AudioSetter();
        }

        if (objectText.text[0] == 'P')
        {
            Vector3 forward = astro_script.vrHead.TransformDirection(Vector3.forward);
            contextMenu.transform.position = astro_script.vrHead.transform.position + forward + new Vector3(0, forward.y, 0) / 5;
            contextMenu.transform.LookAt(astro_script.vrHead.transform);

            for (int i = 0; i < contextMenu.transform.childCount; i++)
            {
                GameObject child = contextMenu.transform.GetChild(i).gameObject;
                child.GetComponent <Animator>().Play("scale in");
                child.transform.LookAt(astro_script.vrHead.transform);
                child.GetComponent <ObjectScript>().clip  = clip;
                child.GetComponent <ObjectScript>().image = image;
            }
        }

        switch (objectText.text)
        {
        case "Cube":
            break;

        case "Earth":
            audio_script.PlayClip(clip);
            break;

        case "Door":
            SceneManager.LoadSceneAsync("EarthTakeoff");
            break;

        case "Audio":
            audio_script.PlayClip(clip);
            contextMenu.transform.position = new Vector3(0, -500, 0);
            break;

        case "Images":
            astro_script.picImage.sprite = image;
            astro_script.picImage.gameObject.GetComponent <Animator>().Play("image scale up");
            contextMenu.transform.position = new Vector3(0, -500, 0);
            break;

        case "Apollo11":
        case "Apollo15":
        case "Apollo12":
        case "Moon":
            SceneManager.LoadSceneAsync("Apollo 12");
            break;

        case "Tutorial":
            SceneManager.LoadScene("Tutorial");
            break;
        }

        astro_script.timeGazing = 0;
        NotGazing();
    }