using UnityEngine;

namespace Assets.Source.Misc
{
    public abstract class ResourceScriptableObject<T> : ScriptableObject where T : ScriptableObject
    {
        public static string FileName => typeof(T).Name;

        private static T _asset;

        public static T Asset => _asset ?? (_asset = Resources.Load<T>(FileName));
    }
}
