예제 #1
0
 public void SetDirect(object target, MemberInfo info, params float[] floats)
 {
     if (setter == null)
     {
         setter = ReflectionTools.GetFieldOrPropSetter <object, Bounds>(info);
     }
     setter(target, new Bounds(new Vector3(floats[0], floats[1], floats[2]), new Vector3(floats[3], floats[4], floats[5])));
 }
예제 #2
0
 public void SetDirect(object target, MemberInfo info, params float[] floats)
 {
     if (setter == null)
     {
         setter = ReflectionTools.GetFieldOrPropSetter <object, bool>(info);
     }
     setter(target, floats[0] >= 1);
 }
예제 #3
0
 public void SetDirect(object target, MemberInfo info, params float[] floats)
 {
     if (setter == null)
     {
         setter = ReflectionTools.GetFieldOrPropSetter <object, Rect>(info);
     }
     setter(target, new Rect(floats[0], floats[1], floats[2], floats[3]));
 }