protected void InitializeSelector() { if (selectorProvider == null) { return; } GameObject[] spawnPointObjects = spawnPoints.Select(spawnPoint => spawnPoint.gameObject).ToArray(); selectorProvider.Initialize(spawnPointObjects); }
protected void InitializeSelector() { if (selectorProvider == null) { return; } IEnumerable <GameObject> preparers = PoolPreparers .Select(preparer => preparer.gameObject); IEnumerable <GameObject> multiPreparers = MultiPoolPreparers.Select(preparer => preparer.gameObject); GameObject[] preparerObjects = preparers.Concat(multiPreparers).ToArray(); selectorProvider.Initialize(preparerObjects); }