コード例 #1
0
 public void AddPool <T>(T reference, int initialSize) where T : class, new ()
 {
     PoolCollections <T> .AddPool(reference, initialSize);
 }
コード例 #2
0
 public void Destroy <T>() where T : class, new ()
 {
     PoolCollections <T> .DestroyPool();
 }
コード例 #3
0
 public void Destroy <T>(T reference) where T : class, new ()
 {
     PoolCollections <T> .DestroyPool(reference);
 }
コード例 #4
0
 public void Clear <T>(T reference) where T : class, new ()
 {
     PoolCollections <T> .ClearPool(reference);
 }
コード例 #5
0
 public void Clear <T>() where T : class, new ()
 {
     PoolCollections <T> .ClearPool();
 }
コード例 #6
0
 public void Recycle <T>(T reference) where T : class, new ()
 {
     PoolCollections <T> .GetPool(reference).Recycle(reference);
 }
コード例 #7
0
 public T Get <T>(T reference) where T : class, new ()
 {
     return(PoolCollections <T> .GetPool(reference).Get());
 }
コード例 #8
0
 public T Get <T>() where T : class, new ()
 {
     return(PoolCollections <T> .GetPool().Get());
 }