public SpawnPool2 GetPool(object poolKey) { if (null == mPoolManager) { mPoolManager = new PoolManager2(); } return(mPoolManager[poolKey]); }
public override bool Initialize() { mPoolManager = new PoolManager2(); SpawnPool2 pool = mPoolManager[PoolKey.SendPacket]; pool.onCreateObject = onCreatObject; pool.onSpawnObject = onSpawnObject; pool.onDespawnObject = onDesPawnObject; return(true); }
public SpawnPool2 this[object poolKey] { get { if (mPoolManager == null) { mPoolManager = new PoolManager2(); } return(mPoolManager[poolKey]); } }
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(); }