示例#1
0
        private List <SpawnView> SpawnSpawns()
        {
            List <SpawnView> spawnViews = new List <SpawnView>();

            SpawnSpawnView[] spawnSpawnViews = chunkView.GetComponentsInChildren <SpawnSpawnView>();

            foreach (SpawnSpawnView spawnSpawnView in spawnSpawnViews)
            {
                SpawnView spawnView = Spawn <SpawnSpawnView, SpawnView>(spawnSpawnView, settings.spawnPrefab);
                spawnViews.Add(spawnView);
            }

            return(spawnViews);
        }
示例#2
0
 public PlaytestManager(
     SpawnView spawnView,
     SpawnManager spawnManager,
     InputManager inputManager,
     PlayerManager playerManager,
     DisplayManager displayManager,
     DeathManager deathManager,
     CameraView cameraView,
     GameStateSignal.Trigger gameStateTrigger)
 {
     this.spawnView        = spawnView;
     this.spawnManager     = spawnManager;
     this.inputManager     = inputManager;
     this.playerManager    = playerManager;
     this.displayManager   = displayManager;
     this.deathManager     = deathManager;
     this.cameraView       = cameraView;
     this.gameStateTrigger = gameStateTrigger;
 }