Exemple #1
0
 public void Call()
 {
     // if button is disabled, no
     if (!Button.IsInteractable())
     {
         return;
     }
     // SetValue is the method for most View->Model value setting.
     // SetValue should work for all member types.
     SetValue(OnClickBinding.MemberName, Paramater == null ? null : Paramater.GetValue());
 }
Exemple #2
0
        public void Call()
        {
            if (!Button.IsInteractable())
            {
                return;
            }

            // if (ClickSound)
            //  {
            //     Audio2DListener.PlayUI(ClickSound, 1);
            //  }

            SetValue(OnClickBinding.MemberName, Paramater == null? null : Paramater.GetValue());
        }