コード例 #1
0
 public void StartDraggingUnplaced(Mechanism mechanism)
 {
     draggingMechanism = mechanism;
     if (draggingMechanism != null)
     {
         draggingMechanism.StartDrag();
     }
 }
コード例 #2
0
 void StartDragging()
 {
     if (OverCell)
     {
         draggingMechanism = OverHexCell == null ? null : OverHexCell.placedMechanism;
         if (draggingMechanism != null)
         {
             draggingMechanism.StartDrag();
         }
     }
 }