Exemple #1
0
        protected DbImplModuleWithPool(TConnectionParam connectionParam, int maxCountElementInPool, int trimPeriod)
        {
            Contract.Requires(connectionParam != null);

            _connectionParam = connectionParam;
            _pool            = new CommonPool <TConnection>(CreateElementInner, IsValidElement, DestroyElement, maxCountElementInPool,
                                                            trimPeriod, "DbPool");
        }
Exemple #2
0
    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>());
    }