コード例 #1
0
ファイル: ObjectPool.cs プロジェクト: mitjmcc/LDJam46
 /// <summary> Deallocates an entity and adds it back to the pool. </summary>
 /// <param name="templet"> The type of object to deallocate. </param>
 /// <param name="entity"> The specifc object to deallocate. </param>
 protected void DeallocateEntity(IPoolable templet, IPoolable entity)
 {
     this.objectPools[templet][entity.GetReferenceIndex()].Deallocate();
 }