using System.Collections.Generic; public class UIInputWizard : UIInput { public List onSelect = new List(); public List onDeselect = new List(); protected override void Update() { base.Update(); } protected override void OnSelectEvent() { base.OnSelectEvent(); EventDelegate.Execute(onSelect); } protected override void OnDeselectEvent() { base.OnDeselectEvent(); if (UIInput.current == null) { UIInput.current = this; EventDelegate.Execute(onDeselect); UIInput.current = null; UpdateLabel(); } } }