public EnemyManager(IShip ship, params EnemyData[] enemies) { _ship = ship; _enemyPool = new EnemyPool(ship, enemies); _enemies = new List <IEnemy>(); _transformReturnChecker = new TransformReturnChecker(); _shipCollisionChecker = new ShipCollisionChecker(ship); _positionSetter = new PositionSetter(ship); _messageBroker = new MessageBroker(); AddEnemies(enemies.Length); }
public TransformCollisionAndReturnChecker(IShip ship) { _ship = ship; _camera = Camera.main; _shipCollisionChecker = new ShipCollisionChecker(_ship); }