public void Add(PoolTypeEnum type, IPoolable poolabelObject) { if (!AvailableObjects.ContainsKey(type)) { AvailableObjects.Add(type, new List <IPoolable>()); } poolabelObject.Deactivate(); AvailableObjects[type].Add(poolabelObject); }
public void Add(PoolTypeEnum type, IPoolable poolabelObject) { if (!AvailableObjects.ContainsKey(type)) { AvailableObjects.Add(type, new List <IPoolable>()); } poolabelObject.Deactivate(); AvailableObjects[type].Add(poolabelObject); }