Beispiel #1
0
 public void SetData(MToken data)
 {
     BinderUtil.SetValueToBinder(data, _mainBinder);
     for (var i = 0; i < _extendBinders.Count; i++)
     {
         BinderUtil.SetValueToBinder(data, _extendBinders[i]);
     }
 }
Beispiel #2
0
        public static void SetValueToBinder(MToken value, UnityEngine.Object binderObject)
        {
            var method = binderObject.GetType().GetMethod("SetData");

            method.Invoke(binderObject, new object[] { value });
        }
Beispiel #3
0
 public void SetData(MToken data)
 {
     _beforeReceiveEvent.Invoke();
     BinderUtil.SetValueToBinder(data, _elementBinder);
     _afterReceiveEvent.Invoke();
 }