protected virtual void SetPoolChildController(CircularListItemController childController) { if (childController != null) { childController.SetActive(false); childPool.Push(childController); } }
protected virtual CircularListItemController GetPoolChildController() { CircularListItemController controller = null; if (childPool.Count > 0) { controller = childPool.Pop(); } if (controller == null) { controller = CreateChildController(childType) as CircularListItemController; } controller.SetActive(true); return(controller); }