コード例 #1
0
        public void Add(GObject target, RelationType relationType, bool usePercent = false)
        {
            foreach (RelationItem item in _items)
            {
                if (item.target == target)
                {
                    item.Add(relationType, usePercent);
                    return;
                }
            }
            RelationItem newItem = new RelationItem(_owner);

            newItem.target = target;
            newItem.Add(relationType, usePercent);
            _items.Add(newItem);
        }