using UnityEngine; public class ScriptableSingleton : ScriptableObject where T : ScriptableObject { static readonly string _scriptableObjectPath = "ScriptableObject/Global/"; protected static T _instance = null; public static T Instance { get { if (_instance is null) { _instance = Resources.Load(_scriptableObjectPath + typeof(T)); } return _instance; } } }