public void PopulateButton(KeyboardToggleButton button, AudioSource audioSourceDown, AudioSource audioSourceUp)
 {
     base.PopulateButton(button, audioSourceDown, audioSourceUp);
     button.keyboard = keyboard;
 }
예제 #2
0
 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);
        }