Exemplo n.º 1
0
 public Button(Rectangle box, string buttontext, ref Input input, List<Texture2D> background)
 {
     this.box = box;
     this.text = buttontext;
     this.input = input;
     this.background = background;
 }
Exemplo n.º 2
0
        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();
        }