Ejemplo n.º 1
0
    private IEnumerator ReturnToPool(float lifetime) //For optimization purposes instead of destroying husks prefabs are returning to the object pool after its animation over
    {
        yield return(new WaitForSeconds(lifetime));

        ErasureManager.ReturnToPool(gameObject);
    }