public void ReverseState() { if (State == SMMemoryCardState.Hidden) { State = SMMemoryCardState.Visible; } else if (State == SMMemoryCardState.Visible) { State = SMMemoryCardState.Hidden; } }
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; } }