Пример #1
0
 private void DuplicateUtilityItem(WorkingMemoryUtilityItem _utilityItem)
 {
     AddNewUtilityItem(new UtilityDescription(_utilityItem.GetUtilityDescription()));
 }
Пример #2
0
        private void DeleteUtilityItem(WorkingMemoryUtilityItem _utilityItem)
        {
            SelectNeighbourUtilityItemIfNeeded(_utilityItem);
            _utilityItem.RemoveFromHierarchy();

            PuppeteerEditorHelper.Remove(ref (m_SelectedListItem as GoalListItem).GetDescription().UtilityParts, _utilityItem.GetUtilityDescription());

            m_SelectedListItem.MarkUnsavedChanges(true);
            AddUnsavedMarker();
        }