コード例 #1
0
 public SpawnPool2 GetPool(object poolKey)
 {
     if (null == mPoolManager)
     {
         mPoolManager = new PoolManager2();
     }
     return(mPoolManager[poolKey]);
 }
コード例 #2
0
        public override bool Initialize()
        {
            mPoolManager = new PoolManager2();
            SpawnPool2 pool = mPoolManager[PoolKey.SendPacket];

            pool.onCreateObject  = onCreatObject;
            pool.onSpawnObject   = onSpawnObject;
            pool.onDespawnObject = onDesPawnObject;
            return(true);
        }
コード例 #3
0
 public SpawnPool2 this[object poolKey]
 {
     get
     {
         if (mPoolManager == null)
         {
             mPoolManager = new PoolManager2();
         }
         return(mPoolManager[poolKey]);
     }
 }
コード例 #4
0
 internal void Reset()
 {
     this.mEnableLog   = false;
     this.mPoolManager = null;
     this.mPoolKey     = null;
     this.mObjectList.Clear();
     mLoadedCount         = 0;
     this.mAutoPreLoadMin = 4;
     this.mAutoPreLoadMax = 32;
     this.mOnCreateObject = null;
     this.mOnSpawnObject  = (this.mOnDespawnObject = (this.mOnDisposeObject = null));
     this.mUseObjectList.Clear();
 }