Example #1
0
        protected override void onSelected(Cube cube)
        {
            PThreeDimStructure s = World.world.getEntityAt(cube.corner) as PThreeDimStructure;

            if (s == null || s.type != contrib)
            {
                MainWindow.showError("Wrong type");
                //! MainWindow.showError("種類が違います");
                return;
            }
            s.remove();
        }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="cube"></param>
        protected override void OnSelected(Cube cube)
        {
            PThreeDimStructure s = WorldDefinition.World.GetEntityAt(cube.Corner) as PThreeDimStructure;

            if (s == null || s.type != contrib)
            {
                MessageBox.Show("Wrong type");
                //! MessageBox.Show("種類が違います");
                return;
            }
            s.remove();
        }