public override void OnCancel() { if (btnYes.IsSelected) { btnYes.OnUnselected(); btnNo.OnSelected(); } base.OnCancel(); }
public override void Update() { if (CheckSubmit) { OnSubmit(); } else if (!btnYes.IsSelected && OdgeUIInput.LEFT) { btnNo.OnUnselected(); btnYes.OnSelected(); } else if (btnYes.IsSelected && OdgeUIInput.RIGHT) { btnYes.OnUnselected(); btnNo.OnSelected(); } else if (CheckCancel) { OnCancel(); } }