Пример #1
0
        public static void Open(ValueContainer container)
        {
            ValueAdder win = EditorWindow.CreateInstance<ValueAdder>();
            win.titleContent = new GUIContent("Value Adder");
            float h = Screen.height * 0.3f;
            float w = Screen.width * 0.4f;
            win.position = new Rect(Screen.width - w, Screen.height - h, w, h);

            _container = container;
            win.ShowAuxWindow();
        }
Пример #2
0
 private void ShowContainer(ValueContainer container)
 {
     foreach (var val in container._valueContainer)
     {
         if (ShowValue(val.Key, val.Value))
         {
             container._valueContainer.Remove(val.Key);
             return;
         }
     }
 }