Beispiel #1
0
	public GameObjectPool (GameObject poolUnit, Transform unitParent, 
		int poolSize, ResetInstance beforeReturn) {
		
		this.PoolUnit = poolUnit;
		this.UnitParent = unitParent;
		this.PoolSize = poolSize;
		this.ResetInstance = beforeReturn;
		FloodPool();
	}
Beispiel #2
0
 public GameObjectPool(GameObject poolUnit, Transform unitParent,
                       int poolSize, ResetInstance beforeReturn)
 {
     this.PoolUnit      = poolUnit;
     this.UnitParent    = unitParent;
     this.PoolSize      = poolSize;
     this.ResetInstance = beforeReturn;
     FloodPool();
 }