// Use this for initialization void Start() { for (int i = 0; i < poolArray.Length; i++) { PoolObject obj = poolArray[i]; obj.Initialise(); pool.Add(obj.name, obj); } poolArray = new PoolObject[0]; }
// Use this for initialization void Start() { for (int i = 0; i < poolArray.Length; i++) { PoolObject obj = poolArray[i]; obj.Initialise(); pool.Add(obj.name, obj); } poolArray = new PoolObject[0]; }