Пример #1
0
    /// <summary>
    /// Allows us to add to a list
    /// </summary>
    /// <param name="rList"></param>
    private void OnAttributeItemListItemAdd(ReorderableList rList)
    {
        mTarget.AddAttribute("", EnumAttributeTypes.Types[mAttributeItemTypeIndex]);

        mAttributeItemList.index = mTarget.Items.Count - 1;
        OnAttributeItemListItemSelect(rList);

        mIsDirty = true;
    }
Пример #2
0
    /// <summary>
    /// Allows us to add to a list
    /// </summary>
    /// <param name="rList"></param>
    private void OnItemListItemAdd(ReorderableList rList)
    {
        if (mAttributeValue.Length == 0)
        {
            return;
        }
        if (mTarget.AttributeExists(mAttributeValue))
        {
            return;
        }

        mTarget.AddAttribute(mAttributeValue);

        mItemList.index = mTarget.Items.Count - 1;
        OnItemListItemSelect(rList);

        mIsDirty = true;
    }