Пример #1
0
 private void DrawVariableNameEnterButton(ICacheEntry field)
 {
     if (GUILayout.Button(field.Name(), _alignedButtonStyle, GUILayout.Width(InspectorNameWidth), GUILayout.MaxWidth(InspectorNameWidth)))
     {
         var val = field.EnterValue();
         if (val != null)
         {
             _nextToPush = new InspectorStackEntry(val, field.Name());
         }
     }
 }
Пример #2
0
        protected void Update()
        {
            if (_nextToPush != null)
            {
                InspectorPush(_nextToPush);

                _nextToPush = null;
            }

            if (Input.GetKeyDown(KeyCode.F12))
            {
                _showGui = !_showGui;
                SetWindowSizes();
            }
        }
Пример #3
0
 private void InspectorPush(InspectorStackEntry o)
 {
     _inspectorStack.Push(o);
     CacheFields(o.Instance);
 }