Beispiel #1
0
        public static void      AddComponent(Component component)
        {
            NGComponentsInspectorWindow instance = EditorWindow.GetWindow <NGComponentsInspectorWindow>(NGComponentsInspectorWindow.ShortTitle);

            instance.history.Add(new ComponentContainer(component));

            if (instance.master == -1)
            {
                instance.master = instance.history.Count - 1;
            }
            else
            {
                instance.slave = instance.history.Count - 1;
            }

            instance.Show();
        }
Beispiel #2
0
 private static void     ContextAddComponent(MenuCommand command)
 {
     NGComponentsInspectorWindow.AddComponent(command.context as Component);
 }