private void Show_LimitCountField_SelectLimitType(ref Rect pos) { pos.height = EntryComponent.SingleLineHeight; var temp = (CollectionLimiterType)EditorGUI.EnumPopup(pos, "Elements Count Limit", _countType); if (temp != _countType) { _countType = temp; OnTypeChange(); } pos.y += pos.height; }
public CollectionComponent_CountLimiter(EntryComponent_Collection collection, CollectionComponent_CountLimiter other) { if (collection == null) { throw new ArgumentNullException("collection"); } _collection = collection; _minCount = other._minCount; _maxCount = other._maxCount; _countType = other._countType; _showAddButton = other._showAddButton; _showRemoveButton = other._showRemoveButton; }