public void PopulateButton(KeyboardToggleButton button, AudioSource audioSourceDown, AudioSource audioSourceUp) { base.PopulateButton(button, audioSourceDown, audioSourceUp); button.keyboard = keyboard; }
public new void PopulateButton(KeyboardToggleButton button, AudioSource audioSourceDown, AudioSource audioSourceUp) { base.PopulateButton(button, audioSourceDown, audioSourceUp); button.clickOnTriggerExit = true; }
protected override void AddButton(GameObject target, AudioSource audioSourceDown, AudioSource audioSourceUp) { KeyboardToggleButton button = Undoable.AddComponent <KeyboardToggleButton>(target); PopulateButton(button, audioSourceDown, audioSourceUp); }