示例#1
0
 private void BindTarget_OnChanged(ObservableProperty property, object source)
 {
     if (source == (object)this)
     {
         return;
     }
     inputField.text = property.AsString();
 }
示例#2
0
    private void BindTarget_OnChanged(ObservableProperty property, object source)
    {
        if (source == (object)this)
        {
            return;
        }
        var newValue = property.AsString();
        int index    = System.Array.IndexOf(property.Choices, newValue);

        dropdown.value = index;
    }
示例#3
0
 private void BindTarget_OnChanged(ObservableProperty property, object source)
 {
     if (source == (object)this)
     {
         return;
     }
     if (TextFormatter != null)
     {
         label.text = TextFormatter(property.Value);
     }
     else if (!string.IsNullOrEmpty(formatString))
     {
         label.text = string.Format(formatString, property.Value);
     }
     else
     {
         label.text = property.AsString();
     }
 }
示例#4
0
 private void AudioCard_OnChanged(ObservableProperty arg1, object source)
 {
     var s = arg1.AsString();
 }