Пример #1
0
 public void RotateTo(Orientation dest)
 {
     foreach (var act in RotateAction.GenerateActions(Orientation, dest))
     {
         Rotate(act.dir);
     }
 }
Пример #2
0
 public void RotateTo(Orientation dest)
 {
     foreach (var act in RotateAction.GenerateActions(Orientation, dest))
     {
         if (act == RotateAction.Left)
         {
             RotateLeft();
         }
         else
         {
             RotateRight();
         }
     }
 }