﻿using UnityEngine;
using UnityEditor;

namespace I2.Loc
{
    [CustomEditor(typeof(LanguageSource))]
    public partial class LanguageSourceInspector : LocalizationEditor
    {
        void OnEnable()
        {
            var newSource = target as LanguageSource;
            SerializedProperty propSource = serializedObject.FindProperty("mSource");

            Custom_OnEnable(newSource.mSource, propSource);
        }

        public override LanguageSourceData GetSourceData()
        {
            return (target as LanguageSource).mSource;
        }

    }
}