//Vector2 line; //public static List<GameNode> Powerups = new List<GameNode>(); public PowerupEnemy(SpriteSheet spriteSheet) : base(spriteSheet) { this.CollisionList = Enemy.Enemies; timer = new Timer(); interval = 5; timer.Fire += new NotifyHandler(timer_Fire); timer.Start(interval); //Powerups.Add(this); }
public Powerup(SpriteSheet spriteSheet) : base(spriteSheet) { this.CollisionList = PlayerShip.PlayerShips; this.CollisionList2 = EnemyPlayerShip.EnemyPlayerShips; timer = new Timer(); interval = 5; timer.Fire += new NotifyHandler(timer_Fire); timer.Start(interval); this.Speed = 10f; Powerups.Add(this); }