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); }
public void RemoveButton(InterfaceButton button) { Buttons.Remove(button); }