internal PropertyOrField([NotNull] FieldInfo field, [CanBeNull] MonoBehaviourPropertyAttribute attribute)
 {
     Field     = field;
     Property  = null;
     IsValid   = true;
     Attribute = attribute;
 }
 internal PropertyOrField([NotNull] PropertyInfo property, [CanBeNull] MonoBehaviourPropertyAttribute attribute)
 {
     Field     = null;
     Property  = property;
     IsValid   = true;
     Attribute = attribute;
 }
Beispiel #3
0
        public MemberSetter([NotNull] FieldInfo field, [CanBeNull] MonoBehaviourPropertyAttribute attribute)
        {
            _property = null;
            _field    = field;
            Attribute = attribute;
            IsValid   = true;

            _valueSetter = CompileFieldSetter(field);
        }
Beispiel #4
0
        public MemberSetter([NotNull] PropertyInfo property, [CanBeNull] MonoBehaviourPropertyAttribute attribute)
        {
            _property = property;
            _field    = null;
            Attribute = attribute;
            IsValid   = true;

            _valueSetter = CompilePropertySetter(property);
        }