Esempio n. 1
0
        protected override void Context()
        {
            target = new AnImplementation {
                FirstName = "toto"
            };
            var property = typeof(IAnInterface).GetProperty("FirstName");

            sut = new PropertyBinder <IAnInterface, string>(property);
            sut.SetValue(target, "tutu");
        }
 private void OnGUI()
 {
     GUILayout.Label(m_title);
     label = GUILayout.TextField(label);
     if (lastText != label)
     {
         lastText = label;
         Binder.SetValue(label, label_binding);
     }
     if (GUILayout.Button("click!"))
     {
         clickEvent.Invoke(Random.Range(0, 1000));
     }
 }