using UnityEngine; namespace UOP1.Factory { /// /// Implements the IFactory interface for Component types. /// /// Specifies the component to create. public abstract class ComponentFactorySO : ScriptableObject, IFactory where T : Component { public abstract T Prefab { get; set; } public virtual T Create() { return Instantiate(Prefab); } } }