public void AddButton(PlayerAbilityModifier ability) { var button = buttonArranger.CreateButton(ability); button.called += (a) => ButtonHit(button, a); buttons.Add(button); buttonArranger.ArrangeButtons(buttons); }
void RemoveModifier(PlayerAbilityModifier modifier) { activeAbilityModifiers.Remove(modifier); }
void AddModifier(PlayerAbilityModifier modifier) { activeAbilityModifiers.Add(modifier); }
public void ModifierUnselected(PlayerAbilityModifier modifier) { buttonDeactivatedEvent(modifier); }
public void ModifierSelected(PlayerAbilityModifier modifier) { buttonActivatedEvent(modifier); }