// Use this for initialization
 void Start()
 {
     sceneTitle = transform.GetChild(0).GetChild(0).gameObject.GetComponent<Text>();
     yawWithCam = GetComponent<YawWithCamera>();
     selector = FindObjectOfType<SkyboxSelect>();
     selector.onSceneSwitchCallbacks.Add(newScene);
     newScene();
 }
 public void newScene()
 {
     if (yawWithCam == null)
     {
         yawWithCam = GetComponent<YawWithCamera>();
     }
     yawWithCam.enabled = true;
     string newSceneName = selector.transform.GetChild(selector.getCurrentSceneIndex()).gameObject.name;
     currentSceneName = newSceneName;
     StopCoroutine("newSceneHelper");
     StartCoroutine("newSceneHelper");
 }