Esempio n. 1
0
 public void RotateTo(Orientation dest)
 {
     foreach (var act in RotateAction.GenerateActions(Orientation, dest))
     {
         Rotate(act.dir);
     }
 }
Esempio n. 2
0
 public void RotateTo(Orientation dest)
 {
     foreach (var act in RotateAction.GenerateActions(Orientation, dest))
     {
         if (act == RotateAction.Left)
         {
             RotateLeft();
         }
         else
         {
             RotateRight();
         }
     }
 }