void SetActive(bool flag) { if (_targetComponent != null && _propertyInfo != null) _propertyInfo.SetValue(_targetComponent, flag, null); if (_targetGameObject != null) _targetGameObject.SetActive(flag); }