コード例 #1
0
 public static void OpenMenu()
 {
     window = GetWindow <RemoveLevelDepdendencyWindow>("Remove Level Dependency");
     WindowRefresh.RefreshLevelsList(out window.targetLevelOptions, out window.selectedLevelValue, out window.targetLevels, out window.gameLevelData);
     window.targetLevel = window.targetLevels[window.selectedLevelValue];
     window.GetDependenciesList();
 }
コード例 #2
0
        private void OnGUI()
        {
            if (GUILayout.Button("Delete Level"))
            {
                DeleteExistingLevel();
            }

            if (GUILayout.Button("Duplicate Level"))
            {
                DuplicateAnExistingLevel();
            }

            if (GUILayout.Button("Add New Scene to Level"))
            {
                AddNewSceneToSelectedLevel();
            }

            if (GUILayout.Button("Delete Scene From Level"))
            {
                DeleteSceneFromExistingLevel();
            }

            if (GUILayout.Button("Rename Level"))
            {
                RenameExistingLevel();
            }

            if (GUILayout.Button("Change Level Category"))
            {
                AssignCategoryToLevel.OpenMenu();
            }

            if (GUILayout.Button("Rename Scene"))
            {
                RenameScene();
            }

            if (GUILayout.Button("Add Existing Independent Scene to Level"))
            {
                AddExistingSceneToExistingLevel();
            }

            if (GUILayout.Button("Decouple Scene from Level"))
            {
                DecoupleSceneFromLevel();
            }
            if (GUILayout.Button("Add a Dependency to a Level"))
            {
                AddDependencyToLevelWindow.OpenMenu();
            }
            if (GUILayout.Button("Remove a Dependency From Level"))
            {
                RemoveLevelDepdendencyWindow.OpenMenu();
            }

            if (GUILayout.Button("Add A Level to Scenes Build Index"))
            {
                AddLevelToBuildWindow.OpenMenu();
            }
        }