public void AddPool(GameObject objectToPull, int size, string poolName, bool expand) { pool poolToAdd = new pool(); poolToAdd.InitializePool(gameObject, size, poolName, expand, objectToPull); poolArray.Add(poolToAdd); }