private void Awake()
 {
     addScene    = GetComponent <AddScene>();
     unloadScene = GetComponent <UnloadSceneCallback>();
     if (SceneManager.GetSceneByName(sceneToLoad.value).buildIndex > 0)
     {
         try
         {
             SceneManager.UnloadSceneAsync(sceneToLoad.value);
         }
         catch (System.Exception ex)
         {
             Debug.LogWarning("Could not unload " + sceneToLoad.value);
             Debug.LogWarning(ex.Message);
         }
     }
     activeScenes = new string[SceneManager.sceneCount];
     for (int i = 0; i < SceneManager.sceneCount; i++)
     {
         if (!SceneManager.GetSceneAt(i).name.Equals(fadeSceneToUnload))
         {
             activeScenes[i] = SceneManager.GetSceneAt(i).name;
         }
     }
 }
 public Pictures(AddScene _addScene)
 {
     InitializeComponent();
     addSceneWindow = _addScene;
 }