public Button(Rectangle box, string buttontext, ref Input input, List<Texture2D> background) { this.box = box; this.text = buttontext; this.input = input; this.background = background; }
public Controller(Input input, SoundManager soundManager, ContentHolder contentHolder) { physicsEngine = new PhysicsEngine(); this.contentHolder = contentHolder; this.soundManager = soundManager; input.jump += new Input.EventHandler(jump); input.duck += new Input.EventHandler(duck); soundManager.playSoundtrack(); }