Exemple #1
0
        public override void Draw()
        {
            if (MapView.MapIsEnabled)
            {
                return;
            }

            if (!StaticsEditorGUI.IsOpen())
            {
                this.Close();
            }

            drawGroupSelector();
        }
        public override void Draw()
        {
            if (MapView.MapIsEnabled)
            {
                return;
            }

            if (!StaticsEditorGUI.IsOpen() || !EditorGUI.instance.IsOpen() || !EditorGUI.grasColorEnabled || EditorGUI.selectedInstance == null)
            {
                this.Close();
            }

            if (EditorGUI.selectedInstance != selectedInstance)
            {
                selectedInstance = EditorGUI.selectedInstance;
                selectedInstance.HighlightObject(Color.clear);
                SetupFields();
            }

            drawGrasColorUI();
        }