private IEnumerator RestoringObject(PoolableObject returnedObject, float timeToReturn) { yield return(new WaitForSeconds(timeToReturn)); returnedObject.transform.parent = transform; returnedObject.transform.localPosition = Vector3.zero; poolableObjects.Add(returnedObject); returnedObject.DeactivateObject(); }