Example #1
0
 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;
 }
Example #2
0
 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;
 }