/// <summary> /// Adds an existing Object Pool if it doesn't have already one with that index /// </summary> /// <param name="pool">Pool to be added</param> /// <param name="poolName">Pool name</param> public void AddObjectPool(AbstractObjectPool pool, string poolName) { if (_pools.ContainsKey(poolName)) { _pools.Add(poolName, pool); } }
/// <summary> /// Adds an existing Object Pool if it doesn't have already one of that type /// </summary> /// <param name="pool">Pool to be added</param> public void AddObjectPool(AbstractObjectPool pool) { if (!_pools.ContainsKey(pool.GetType() + "ByType")) { _pools.Add(pool.GetType() + "ByType", pool); } }