Esempio n. 1
0
        public CInspectorEntityComponentViewModel(IInspectorViewModel viewModel, string name, SEntityComponentId componentId)
            : base(viewModel, name)
        {
            ComponentId = componentId;

            DeleteComponentCommand = new CRelayCommand(arg =>
            {
                EditorEntityUtility.DestroyComponent(ComponentId);

                m_viewModel.QueueEntityInformationUpdate(ComponentId.EntityId, true);
            });
        }
Esempio n. 2
0
        protected virtual void OnDeleteComponent(object argument)
        {
            EditorEntityUtility.DestroyComponent(ComponentId);

            m_viewModel.QueueEntityInformationUpdate(ComponentId.EntityId, true);
        }