public void AddButton(PlayerActivatedPower power) { var button = buttonArranger.CreateButton(power); button.called += ButtonHit; buttons.Add(button); buttonArranger.ArrangeButtons(buttons); }
public void AddButton(PlayerAbilityModifier ability) { var button = buttonArranger.CreateButton(ability); button.called += (a) => ButtonHit(button, a); buttons.Add(button); buttonArranger.ArrangeButtons(buttons); }