コード例 #1
0
        public virtual U DequeueScriptByKey <U> (T key) where U : MonoBehaviour
        {
            Poolable item = DequeueByKey(key);

            return(item.GetComponent <U>());
        }
コード例 #2
0
        public virtual U DequeueScript <U> () where U : MonoBehaviour
        {
            Poolable item = Dequeue();

            return(item.GetComponent <U>());
        }