public Shot(Texture2D texture, Vector2 position, Enemy targetEnemy, float speed) { this.texture = texture; this.Position = position; this.targetEnemy = targetEnemy; this.speed = speed; Alive = true; }
public Shot(Texture2D texture, Vector2 position, Enemy targetEnemy, float speed) { this.texture = texture; this.Position = position; this.targetEnemy = targetEnemy; this.speed = speed; this.animation = new Animacao(texture, this.Position, 16, 16, 2, 90, 1.0f, true); Alive = true; }
public override void FireToEnemy(Enemy enemy, Vector2 positionSource, Texture2D texture) { FireToEnemy(enemy, positionSource, texture, 0); }
public void Add(Enemy enemy) { Enemies.Add(enemy); }