コード例 #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");
        }
コード例 #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>());
    }