public IEnumerator createTest() { Transform root = new GameObject("Root").transform; Transform origin = new GameObject("Origin").transform; ComponentPool <Transform> list = new ComponentPool <Transform>(root, origin); Transform clone = list.create(); Assert.NotNull(clone); yield return(new WaitForEndOfFrame()); Assert.False(origin == clone); list.remove(clone); Assert.AreEqual(0, list.count); Transform pooled = list.create(); Assert.AreEqual(clone, pooled); }