using System.Collections.Generic; using UnityEngine; public abstract class Database : ScriptableObject where T : IDesc { [SerializeField] protected List _descs = new List(); public virtual object FindByUuid(string uuid) { foreach (var desc in _descs) { if (desc.DescId.uuid == uuid) { return desc; } } return null; } }