public void AddEnemy(Enemy e) { enemiesToAdd.Add(e); }
public EnemyDead(GeomCloneLevel level, Enemy enemy, Vector2 bulletVelocity) : base(level, enemy, null) { // Activate proper animation Owner.ChangeAnimation(new FadeOutDead(level, Owner)); // Eliminate any eventual behavior Owner.ResetBehavior(); // Sets the velocity of the dead particle to have the same direction of the bullet velocity Owner.Vehicle.Velocity = 100 * bulletVelocity; }
public void RemoveEnemy(Enemy e) { enemiesToRemove.Add(e); }