Esempio n. 1
0
 public UTinyEditorContext(UTinyProject.Reference project, EditorContextType type, UTinyContext context, UTinyEditorWorkspace workspace)
 {
     m_Project          = project;
     ContextType        = type;
     Context            = context ?? new UTinyContext();
     Workspace          = workspace ?? new UTinyEditorWorkspace();
     Undo               = new UTinyUndo(Registry, Caretaker);
     EntityGroupManager = new UTinyEntityGroupManager(this);
 }
Esempio n. 2
0
            public GUIContents(EditorContextType contextType)
            {
                var tabs = new List <GUIContent>
                {
                    new GUIContent("Settings"),
                    new GUIContent("Modules", "Declare your project dependencies."),
                    new GUIContent("Entities", "Define your game data."),
                    new GUIContent("Components", "Define your data types."),
                    new GUIContent("Systems", "Define your game logic"),
                    new GUIContent("Assets", "Preview and include assets."),
                };

                if (contextType == EditorContextType.Project)
                {
                    tabs.Add(new GUIContent("Build Report", "View project build report."));
                }
                Tabs = tabs.ToArray();
            }