void EditModeDeleteSingle() { if (e.type == EventType.Used) { // Get GameObject pick.GetGameObject(layer); } if (pick.Target) { // hit target pickPosition = pick.TargetPosition; } // Wire cube DrawBrush(pickPosition, Color.red); LeftClick(Delete); }