Beispiel #1
0
 public void ReverseState()
 {
     if (State == SMMemoryCardState.Hidden)
     {
         State = SMMemoryCardState.Visible;
     }
     else if (State == SMMemoryCardState.Visible)
     {
         State = SMMemoryCardState.Hidden;
     }
 }
Beispiel #2
0
 public void NextState()
 {
     if (State == SMMemoryCardState.Hidden)
     {
         State = SMMemoryCardState.HiddenToVisible;
     }
     else if (State == SMMemoryCardState.HiddenToVisible)
     {
         State = SMMemoryCardState.Visible;
     }
     else if (State == SMMemoryCardState.Visible)
     {
         State = SMMemoryCardState.VisibleToHidden;
     }
     else if (State == SMMemoryCardState.VisibleToHidden)
     {
         State = SMMemoryCardState.Hidden;
     }
 }