public EnemyProjectile(ShootingEnemy aShootingEnemy) : base("EnemyProjectile", new Vector2(aShootingEnemy.Position.X + aShootingEnemy.Size / 2, aShootingEnemy.Position.Y + aShootingEnemy.Size / 3), 1, 500, 16) { InitializeSpeed(aShootingEnemy.Direction, aShootingEnemy.Speed); }
private void CreateShootingEnemy(List <string> aVariableString) { float positionX = float.Parse(aVariableString[0]); float positionY = float.Parse(aVariableString[1]); ShootingEnemy shootingEnemy = new ShootingEnemy(new Vector2(positionX, positionY)); shootingEnemy.ShootProjectile += ShootProjectile; myEnemies.Add(shootingEnemy); }