コード例 #1
0
 public void Rotate()
 {
     Position++;
     if (Position > 26)
     {
         Position = 1;
     }
     if (EnableNotch && Notches.Contains(Position))
     {
         if (RotateNotch != null)
         {
             RotateNotch();
         }
     }
 }
コード例 #2
0
 public void RotateBack()
 {
     Position--;
     if (Position < 1)
     {
         Position = 26;
     }
     if (EnableNotch && Notches.Contains(Position))
     {
         if (RotateNotchBack != null)
         {
             RotateNotchBack();
         }
     }
 }