protected DbImplModuleWithPool(TConnectionParam connectionParam, int maxCountElementInPool, int trimPeriod) { Contract.Requires(connectionParam != null); _connectionParam = connectionParam; _pool = new CommonPool <TConnection>(CreateElementInner, IsValidElement, DestroyElement, maxCountElementInPool, trimPeriod, "DbPool"); }
void Awake() { if (instance == null) { instance = this; } spawnedObjects.Add(new List <GameObject>()); spawnedObjects.Add(new List <GameObject>()); spawnedObjects.Add(new List <GameObject>()); spawnedObjects.Add(new List <GameObject>()); spawnedObjects.Add(new List <GameObject>()); }