protected void InitializeSelector()
        {
            if (selectorProvider == null)
            {
                return;
            }

            GameObject[] spawnPointObjects = spawnPoints.Select(spawnPoint => spawnPoint.gameObject).ToArray();
            selectorProvider.Initialize(spawnPointObjects);
        }
示例#2
0
        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);
        }