Esempio n. 1
0
 public LevelManager(FixedBlock fixedBlockPrefab, WeakBlock weakBlockPrefab,
                     EnemyManager enemyManager, PlayerManager playerManager)
 {
     this.playerManager = playerManager;
     this.playerManager.SetLevelManager(this);
     levelController = new LevelController(fixedBlockPrefab, weakBlockPrefab,
                                           enemyManager, playerManager, this);
 }
Esempio n. 2
0
 public LevelController(FixedBlock fixedBlockPrefab, WeakBlock weakBlockPrefab,
                        EnemyManager enemyManager, PlayerManager playerManager,
                        LevelManager levelManager)
 {
     this.playerManager  = playerManager;
     this.enemyManager   = enemyManager;
     this.levelManager   = levelManager;
     this.fixedBlockPref = fixedBlockPrefab;
     this.weakBlockPref  = weakBlockPrefab;
     gridWidth           = (int)GameManager.Instance.gridSize.x;
     gridHeight          = (int)GameManager.Instance.gridSize.y;
     enemyCount          = GameManager.Instance.enemyCount;
     GameManager.Instance.restartGame += RestartGame;
 }