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(); }
/// <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(); }