예제 #1
0
    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();
    }