public U GetScript <U> (T key) where U : MonoBehaviour { Poolable item = GetItem(key); if (item != null) { return(item.GetComponent <U>()); } return(null); }
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>()); }