Table of Contents

Class PoolManager

Namespace
CodeBase.DebugConsole
Assembly
4Experience.Codebase.DebugConsole.dll
public class PoolManager : SingletonMonoBehaviour<PoolManager>
Inheritance
Object
Component
Behaviour
MonoBehaviour
PoolManager
Inherited Members
Extension Methods

Fields

PoolsDictionary

private Dictionary<string, Queue<GameObject>> PoolsDictionary

Field Value

Dictionary<string, Queue<GameObject>>

Properties

PoolsCollectionToInitialize

private List<PoolSetup> PoolsCollectionToInitialize { get; set; }

Property Value

List<PoolSetup>

Methods

GetObject(PoolSetup, Transform)

public GameObject GetObject(PoolSetup setting, Transform parent)

Parameters

setting PoolSetup
parent Transform

Returns

GameObject

Initialize()

Method called when a Singleton instance is created within the Awake callback. It is used to override the initialization behavior.

protected override void Initialize()

InitializePools()

private void InitializePools()

IsElementsInPool(PoolSetup)

private bool IsElementsInPool(PoolSetup setting)

Parameters

setting PoolSetup

Returns

bool

ReturnObjectToPool(PoolSetup, GameObject)

public void ReturnObjectToPool(PoolSetup setting, GameObject objectToReturn)

Parameters

setting PoolSetup
objectToReturn GameObject

ReturnObjectToPool<T>(PoolSetup, List<T>)

public void ReturnObjectToPool<T>(PoolSetup setting, List<T> objectListToReturn) where T : Component

Parameters

setting PoolSetup
objectListToReturn List<T>

Type Parameters

T

ReturnObjectToPool<T>(PoolSetup, T)

public void ReturnObjectToPool<T>(PoolSetup setting, T objectToReturn) where T : Component

Parameters

setting PoolSetup
objectToReturn T

Type Parameters

T