internal void DrawOnShiftInterface(ShiftInterface shiftInterface) { Particles.ForEach(p => shiftInterface.drawOnOverlay(p)); Projectiles.ForEach(p => shiftInterface.drawOnOverlay(p)); Collectables.ForEach(c => shiftInterface.drawOnOverlay(c)); Enemies.ForEach(e => shiftInterface.drawOnOverlay(e)); shiftInterface.drawOnOverlay(MainPlayer); }
public ShiftButton(ShiftInterface inter, Rectangle rectangle, int index, ShiftDirection direction) : base(rectangle, rotationForShiftDirection(direction), arrowButton, arrowButtonPressed) { _direction = direction; _index = index; _interface = inter; setTargets(ButtonWasToggledDown, buttonWasToggledUp); }