示例#1
0
 public override void OnCancel()
 {
     if (btnYes.IsSelected)
     {
         btnYes.OnUnselected();
         btnNo.OnSelected();
     }
     base.OnCancel();
 }
示例#2
0
        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();
            }
        }