Exemple #1
0
    public void ReleasePoolable(PlayerPool poolableObject)
    {
        this.usedObjects.Remove(poolableObject);

        poolableObject.Release();
        poolableObject.gameObject.SetActive(false);
        this.availableObjects.Add(poolableObject);
    }