コード例 #1
0
        /// <summary>
        /// Initialize all the pools from the list
        /// </summary>
        public void Initialize()
        {
            Instance = this;

            foreach (var pool in pools)
            {
                var objs = GeneratePool(pool);

                if (PoolExists(pool.Id))
                {
                    continue;
                }

                pool.SetObjects(objs);
                poolDict.Add(pool.Id, pool);
            }
        }
コード例 #2
0
 public abstract void SetPooler(Pooler pooler, Pool pool);
コード例 #3
0
 /// <summary>
 /// Set pooler/pool data
 /// </summary>
 public override void SetPooler(Pooler pooler, Pool pool)
 {
     this.pooler = pooler;
     this.pool   = pool;
 }