コード例 #1
0
    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;
    }
コード例 #2
0
 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;
 }