Ejemplo n.º 1
0
 /// <summary>
 /// Loads the referenced scene set.
 /// </summary>
 /// <param name="additive"></param>
 public void LoadSceneSet(bool additive)
 {
     if (SceneSet != null)
     {
         SceneSet.LoadSceneSet(additive);
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Draws the load scene set button.
        /// </summary>
        private void DrawLoadSceneSetButton()
        {
            if (GUILayout.Button("Load Scene Set"))
            {
                if (EditorUtility.DisplayDialog("Load Scene Set",
                                                "Replacing currently opens scenes with Scene Set.\nAre you sure?",
                                                "Load", "Cancel"))
                {
                    _target.LoadSceneSet(false);
                }
            }

            if (GUILayout.Button("Load Scene Set (Keep Current Scenes)"))
            {
                _target.LoadSceneSet(true);
            }

            if (GUILayout.Button("Unload Scene Set"))
            {
                _target.UnloadSceneSet();
            }
        }