예제 #1
0
        /// <summary>
        /// Call this when editor item is deleted
        /// </summary>
        /// <param name="item"></param>
        public void EditorItemDeleted(EditorItem item, int parentIndex)
        {
            if (!Disabled)
            {
                EditorDeleteAction action = new EditorDeleteAction(item, parentIndex);
                actions.Insert(currentActionIndex, action);
                currentActionIndex++;

                RemoveNotValidItems();
                EditorController.Instance.ProjectSaved = false;
            }
        }
예제 #2
0
        /// <summary>
        /// Call this when editor item is deleted
        /// </summary>
        /// <param name="item"></param>
        public void EditorItemDeleted(EditorItem item, int parentIndex)
        {
            if (!Disabled)
            {
                EditorDeleteAction action = new EditorDeleteAction(item, parentIndex);
                actions.Insert(currentActionIndex, action);
                currentActionIndex++;

                RemoveNotValidItems();
                EditorController.Instance.ProjectSaved = false;
            }
        }