Exemplo n.º 1
0
        public InterfaceButton AddButton(Func <Rectangle> position, Action <Player> pressAction, Action <Player, SpriteBatch> hoverAction)
        {
            InterfaceButton button = new InterfaceButton(position, pressAction, hoverAction);

            buttons.Add(button);
            return(button);
        }
Exemplo n.º 2
0
 public void RemoveButton(InterfaceButton button)
 {
     buttons.Remove(button);
 }