Пример #1
0
 bool IMyEntities.Exist(IMyEntity entity)
 {
     if (entity is MyEntity)
     {
         return(MyEntities.Exist(entity as MyEntity));
     }
     return(false);
 }
        private void OnCutFloatingObjectConfirm(MyFloatingObject floatingObj)
        {
            Debug.Assert(floatingObj != null);

            if (MyEntities.Exist(floatingObj))
            {
                DeactivateCopyPasteVoxel(true);
                DeactivateCopyPaste(true);
                m_floatingObjectClipboard.CutFloatingObject(floatingObj);
            }
        }