示例#1
0
 public void NotifyDestinationFound(CurrentDestinationName destinationName)
 {
     if (destinationName == currentDestination)
     {
         ChangeCurrentDestination();
         UpdateDestination();
     }
 }
示例#2
0
        private void ChangeCurrentDestination()
        {
            int currentIndex = (((int)currentDestination) + 1) % Enum.GetValues(typeof(CurrentDestinationName)).Length;

            currentDestination = (CurrentDestinationName)currentIndex;
        }