public void Initialize(IUserInput userInput, [Inject(Id = Identifiers.PlayerProjectile)] Projectile.Pool projectilesPool, [Inject(Id = Identifiers.PlayerExplosion)] Explosion.Pool explosionsPool) { _userInput = userInput; _projectilesPool = projectilesPool; _explosionsPool = explosionsPool; }
public void Initialize(PlayerShip playerShip, [Inject(Id = Identifiers.EnemyProjectile)] Projectile.Pool projectilesPool, [Inject(Id = Identifiers.EnemyExplosion)] Explosion.Pool explosionsPool) { _playerShip = playerShip; _projectilesPool = projectilesPool; _explosionsPool = explosionsPool; _damageable.GotHit += OnHit; }