public virtual U DequeueScriptByKey <U> (T key) where U : MonoBehaviour { Poolable item = DequeueByKey(key); return(item.GetComponent <U>()); }
public virtual U DequeueScript <U> () where U : MonoBehaviour { Poolable item = Dequeue(); return(item.GetComponent <U>()); }