<commit_before>﻿using UnityEditor;
using UnityEngine;

namespace HealthEx.DamageComponent {

    [CustomEditor(typeof(Damage))]
    [CanEditMultipleObjects]
    public sealed class DamageEditor : Editor {
        #region FIELDS

        private Damage Script { get; set; }

        #endregion FIELDS

        #region SERIALIZED PROPERTIES

        private SerializedProperty description;

        #endregion SERIALIZED PROPERTIES

        #region UNITY MESSAGES

        public override void OnInspectorGUI() {
            serializedObject.Update();

            DrawVersionLabel();
            DrawDescriptionTextArea();

            EditorGUILayout.Space();

            serializedObject.ApplyModifiedProperties();
        }

        private void OnEnable() {
            Script = (Damage)target;

            description = serializedObject.FindProperty("description");
        }

        #endregion UNITY MESSAGES

        #region INSPECTOR CONTROLS<commit_msg>Draw damage value<commit_after>﻿using UnityEditor;
using UnityEngine;

namespace HealthEx.DamageComponent {

    [CustomEditor(typeof(Damage))]
    [CanEditMultipleObjects]
    public sealed class DamageEditor : Editor {
        #region FIELDS

        private Damage Script { get; set; }

        #endregion FIELDS

        #region SERIALIZED PROPERTIES

        private SerializedProperty description;
        private SerializedProperty damageValue;

        #endregion SERIALIZED PROPERTIES

        #region UNITY MESSAGES

        public override void OnInspectorGUI() {
            serializedObject.Update();

            DrawVersionLabel();
            DrawDescriptionTextArea();

            EditorGUILayout.Space();

            DrawDamageValueField();

            serializedObject.ApplyModifiedProperties();
        }
        private void OnEnable() {
            Script = (Damage)target;

            description = serializedObject.FindProperty("description");
            damageValue = serializedObject.FindProperty("damageValue");
        }

        #endregion UNITY MESSAGES

        #region INSPECTOR CONTROLS
        private void DrawDamageValueField() {
            EditorGUILayout.PropertyField(
                damageValue,
                new GUIContent(
                    "Damage",
                    "Damage value."));
        }

{'fraction_non_alphanumeric': 0.06988783433994823, 'fraction_numerical': 0.0, 'mean_word_length': 2.168032786885246, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3503771', 'n_tokens_mistral': 584, 'n_tokens_neox': 550, 'n_words': 129}