Esempio n. 1
0
        public override void Update(GameTime gametime)
        {
            button_messagebox.Update();
            messagebox.Update();

            button_yesno.Update();
            yesno.Update();

            if (button_messagebox.pressed)
            {
                messagebox.visible        = true;
                button_messagebox.pressed = false;
            }

            if (button_yesno.pressed)
            {
                yesno.visible        = true;
                button_yesno.pressed = false;
            }

            if (yesno.outcome)
            {
                throw new System.Exception("hi there");
            }

            base.Update(gametime);
        }